This repository contains a variety of GitHub Actions workflow files that automate various processes.
- Repository structure 🗃️
- How to import a group of workflows into a repository 📩
- Updating existing workflows 🪚🩹
Workflows files are stored in the workflow-templates
folder and are further grouped in separate
folders. The rest of this document will refer to these folders as groups
. Each group contains a
.github
folder that contains a workflows
folder that finally contains all workflow files with
.yaml
extension.
Each group also contains a README.md
document that describes what these workflows do and how
should they be used.
Importing of workflows is done with old-fashioned copy and paste:
- Decide which group of workflows do you want, for example,
basic
group. - Checkout the default branch of your repository (should be
main
). - Copy the
.github
directory inside thebasic
folder into your project root directory (you might already have it, make sure that you don't erase present files). - Commit new files and push them to the GitHub
That's it. You can now go to the project's GitHub page and click Actions tab, workflows that you just added will be there.
Updating existing workflows is the same as importing them except you should update workflow files in
all longlived branches, (which should be only main
) and commit changes to the GitHub.
This is needed because GitHub can decide from which branch it will take the workflow file, based on that how that workflow was triggered.