-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
openshift-pipelines-bot
committed
Nov 25, 2024
1 parent
b81a317
commit 41f3b54
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: auto-merge-release-v0.4.0 | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: "*/30 * * * *" # At every 30 minutes | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Checkout the current repo | ||
uses: actions/checkout@v4 | ||
- name: auto-merge-update-references | ||
run: | | ||
gh auth status | ||
git config user.name openshift-pipelines-bot | ||
git config user.email [email protected] | ||
# Approve and merge pull-request with no reviews | ||
for p in $(gh pr list --search "author:app/red-hat-konflux head:konflux/references/release-v0.4.0" --json "number" | jq ".[].number"); do | ||
gh pr merge --rebase --delete-branch --auto $p | ||
done | ||
env: | ||
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} | ||
- name: auto-merge-upstream-release-v0.4.0 | ||
run: | | ||
gh auth status | ||
git config user.name openshift-pipelines-bot | ||
git config user.email [email protected] | ||
# Approve and merge pull-request with no reviews | ||
for p in $(gh pr list --search "head:actions/update/sources-release-v0.4.0" --json "number" | jq ".[].number"); do | ||
gh pr merge --rebase --delete-branch --auto $p | ||
done | ||
env: | ||
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters