Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
pulpbot committed Dec 10, 2024
1 parent 6ea5b70 commit fa0f5a5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-406-g5f397e3
2021.08.26-411-g6a2035a
8 changes: 7 additions & 1 deletion .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
name: "File PR static checks"
on:
pull_request_target:
types: ["opened", "synchronize", "reopened"]
types:
- "opened"
- "synchronize"
- "reopened"
branches:
- "main"
- "[0-9]+.[0-9]+"

# This workflow runs with elevated permissions.
# Do not even think about running a single bit of code from the PR.
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/update_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr_main"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -65,6 +66,14 @@ jobs:
branch: "update-ci/main"
base: "main"
delete-branch: true
- name: "Experiment: Mark PR automerge"
working-directory: "pulp_file"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr_main.outputs.pull-request-number }}"
if: "steps.create_pr_main.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -78,6 +87,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr_1_10"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -87,6 +97,14 @@ jobs:
branch: "update-ci/1.10"
base: "1.10"
delete-branch: true
- name: "Experiment: Mark PR automerge"
working-directory: "pulp_file"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr_1_10.outputs.pull-request-number }}"
if: "steps.create_pr_1_10.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -100,6 +118,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr_1_11"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -109,4 +128,12 @@ jobs:
branch: "update-ci/1.11"
base: "1.11"
delete-branch: true
- name: "Experiment: Mark PR automerge"
working-directory: "pulp_file"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr_1_11.outputs.pull-request-number }}"
if: "steps.create_pr_1_11.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
...

0 comments on commit fa0f5a5

Please sign in to comment.