|
22 | 22 | token: "${{ secrets.RELEASE_TOKEN }}" |
23 | 23 | path: "pulp-cli-ostree" |
24 | 24 | - name: "Set up Python" |
25 | | - uses: "actions/setup-python@v5" |
| 25 | + uses: "actions/setup-python@v6" |
26 | 26 | with: |
27 | | - python-version: "3.11" |
| 27 | + python-version: "3.13" |
28 | 28 | - name: "Setup git" |
29 | 29 | run: | |
30 | 30 | git config user.name pulpbot |
|
57 | 57 | env: |
58 | 58 | GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}" |
59 | 59 | continue-on-error: true |
| 60 | + update-dependencies: |
| 61 | + runs-on: "ubuntu-latest" |
| 62 | + steps: |
| 63 | + - uses: "actions/checkout@v5" |
| 64 | + with: |
| 65 | + repository: "pulp/pulp-cli" |
| 66 | + path: "pulp-cli" |
| 67 | + - uses: "actions/checkout@v5" |
| 68 | + with: |
| 69 | + token: "${{ secrets.RELEASE_TOKEN }}" |
| 70 | + path: "pulp-cli-ostree" |
| 71 | + - name: "Set up Python" |
| 72 | + uses: "actions/setup-python@v6" |
| 73 | + with: |
| 74 | + python-version: "3.13" |
| 75 | + - name: "Setup git" |
| 76 | + run: | |
| 77 | + git config user.name pulpbot |
| 78 | + git config user.email pulp-infra@redhat.com |
| 79 | + - name: "Install python dependencies" |
| 80 | + run: | |
| 81 | + pip install packaging tomlkit |
| 82 | + - name: "Apply cookiecutter templates" |
| 83 | + run: | |
| 84 | + ../pulp-cli/cookiecutter/update_pulp_cli.py |
| 85 | + if [ "$(git status --porcelain)" ] |
| 86 | + then |
| 87 | + git add . |
| 88 | + git commit -m "Update CLI and GLUE" |
| 89 | + fi |
| 90 | + - name: "Create Pull Request" |
| 91 | + uses: "peter-evans/create-pull-request@v7" |
| 92 | + id: "create_pr" |
| 93 | + with: |
| 94 | + token: "${{ secrets.RELEASE_TOKEN }}" |
| 95 | + title: "Update CLI and GLUE" |
| 96 | + body: "" |
| 97 | + branch: "update_cli" |
| 98 | + delete-branch: true |
| 99 | + path: "pulp-cli-ostree" |
| 100 | + - name: "Mark PR automerge" |
| 101 | + run: | |
| 102 | + gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}" |
| 103 | + if: "steps.create_pr.outputs.pull-request-number" |
| 104 | + env: |
| 105 | + GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}" |
| 106 | + continue-on-error: true |
60 | 107 | ... |
0 commit comments