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 dbf8d89 commit 4378711
Show file tree
Hide file tree
Showing 3 changed files with 56 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-409-g3192390
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
48 changes: 48 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"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -65,6 +66,13 @@ jobs:
branch: "update-ci/main"
base: "main"
delete-branch: true
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
token: "{{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -78,6 +86,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -87,6 +96,13 @@ jobs:
branch: "update-ci/1.10"
base: "1.10"
delete-branch: true
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
token: "{{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -100,6 +116,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -109,6 +126,13 @@ jobs:
branch: "update-ci/1.11"
base: "1.11"
delete-branch: true
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
token: "{{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -122,6 +146,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -131,6 +156,13 @@ jobs:
branch: "update-ci/1.12"
base: "1.12"
delete-branch: true
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
token: "{{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -144,6 +176,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -153,6 +186,13 @@ jobs:
branch: "update-ci/1.13"
base: "1.13"
delete-branch: true
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
token: "{{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
Expand All @@ -166,6 +206,7 @@ jobs:
- name: "Create Pull Request for CI files"
uses: "peter-evans/create-pull-request@v6"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp_file"
Expand All @@ -175,4 +216,11 @@ jobs:
branch: "update-ci/1.14"
base: "1.14"
delete-branch: true
- name: "Experiment: Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
token: "{{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
...

0 comments on commit 4378711

Please sign in to comment.