You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


Github Actions 




FAQ

1) If we create new workflow on master (say, new test), should we add this workflow onto our releases branch or GH do it automatically. Seems, it may also depends on the triggers of such workflow (has it branch-based filter or not).

The order of operations in a workflow run triggered by push or pull request is described in the reference documentation:

The .github/workflows directory in your repository is searched for workflow files at the associated commit SHA or Git ref. The workflow files must be present in that commit SHA or Git ref to be considered.

For example, if the event occurred on a particular repository branch, then the workflow files must be present in the repository on that branch.

2) If we change our workflow on master (change steps inside workflow), will it be updating on another branches we have (say, we add step to this one). Seems, it may also depends on the triggers of such workflow (has it branch-based filter or not).

We must push changes to the brunch as well. 

workflow:
2.1. Create an empty YAML file in the .github/workflows folder or change current

2.2. Create a PR to move that file to your branch

2.3 In your branch, you can now do the necessary edits to get your GH Action up & running. NOTE: next to updating your YAML, you also need to make a change that actually triggers the workflow

  • No labels