|
2 | 2 | # stackhpc/ansible-slurm-appliance repository to check whether there is a new upstream version available. If a |
3 | 3 | # newer tag is found in the upstream repository then a pull request is created to the downstream repo |
4 | 4 | # in order to merge in the changes from the new upstream release. |
5 | | - |
| 5 | +# |
6 | 6 | # To use this workflow in a downstream ansible-slurm-appliance repository simply copy it into .github/workflows |
7 | 7 | # and give it an appropriate name, e.g. |
8 | 8 | # cp .github/workflows/upgrade-check.yml.sample .github/workflows/upgrade-check.yml |
| 9 | +# |
| 10 | +# Workflow uses https://github.com/peter-evans/create-pull-request to handle the pull request action. |
| 11 | +# See the docs for action inputs. |
| 12 | +# |
| 13 | +# In order for GitHub actions to create pull requests that make changes to workflows in `.github/workflows`, |
| 14 | +# a token for each deployment must be provided. Both user PAT and fine-grained tokens should work, but it was tested |
| 15 | +# with a PAT. Fine-grained repo-scoped token is preferred if possible but requires organisation admin privileges. |
| 16 | +# |
| 17 | +# See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens |
| 18 | +# for security considerations around tokens. TREAT YOUR ACCESS TOKENS LIKE PASSWORDS. |
| 19 | +# |
| 20 | +# The following repository permissions must be set for the PAT: |
| 21 | +# - `Workflows: Read and write` |
| 22 | +# - `Actions: Read and write` |
| 23 | +# - `Pull requests: Read and write` |
| 24 | +# The PAT should then be copied into an Actions repository secret in the downstream repo with the title `WORKFLOW_TOKEN`. |
9 | 25 |
|
10 | 26 | name: Check for upstream updates |
11 | 27 | on: |
|
15 | 31 | jobs: |
16 | 32 | check_for_update: |
17 | 33 | runs-on: ubuntu-22.04 |
18 | | - # permissions: |
19 | | - # contents: write |
20 | | - # pull-requests: write |
21 | | - # actions: write |
22 | 34 |
|
23 | 35 | steps: |
24 | 36 | - name: Checkout the config repo |
|
27 | 39 | fetch-depth: 0 |
28 | 40 | fetch-tags: true |
29 | 41 |
|
30 | | - # Based on equivalent GitLab CI job |
| 42 | + # Based on equivalent azimuth-config job |
31 | 43 | - name: Check for new release |
32 | 44 | shell: bash |
33 | 45 | run: | |
|
0 commit comments