Skip to content

Commit d76ae5a

Browse files
openshift-pipelines-botsavitaashture
authored andcommitted
[bot:main] update konflux configuration
1 parent 8efa6f1 commit d76ae5a

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Generated for Konflux Application openshift-pipelines-core-1.17 by openshift-pipelines/hack. DO NOT EDIT
2+
name: auto-merge-upstream-release-v1.17.x
3+
4+
on:
5+
workflow_dispatch: {}
6+
schedule:
7+
- cron: "*/30 * * * *" # At every 30 minutes
8+
9+
jobs:
10+
auto-approve:
11+
runs-on: ubuntu-latest
12+
if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere
13+
permissions:
14+
pull-requests: write
15+
steps:
16+
- name: Checkout the current repo
17+
uses: actions/checkout@v4
18+
- name: auto-merge-upstream-release-v1.17.x
19+
run: |
20+
gh auth status
21+
git config user.name openshift-pipelines-bot
22+
git config user.email [email protected]
23+
# Approve and merge pull-request with no reviews
24+
for p in $(gh pr list --search "head:actions/update/sources-release-v1.17.x" --json "number" | jq ".[].number"); do
25+
gh pr merge --rebase --delete-branch --auto $p
26+
done
27+
env:
28+
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
29+

.github/workflows/update-sources-release-v1.17.x.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Generated by openshift-pipelines/hack. DO NOT EDIT.
1+
# Generated for Konflux Application openshift-pipelines-core-1.17 by openshift-pipelines/hack. DO NOT EDIT
22
name: update-sources-release-v1.17.x
33

44
on:
55
workflow_dispatch: {}
6-
schedule:
7-
- cron: "0 1 * * 1" # At 1AM every monday
6+
# schedule:
7+
# - cron: "0 1 * * *" # At 1AM everyday
88

99
jobs:
1010

@@ -27,8 +27,6 @@ jobs:
2727
pushd upstream
2828
git checkout -B release-v0.29.x origin/release-v0.29.x
2929
popd
30-
31-
3230
- name: Commit new changes
3331
run: |
3432
git config user.name openshift-pipelines-bot
@@ -46,7 +44,7 @@ jobs:
4644
git rev-parse HEAD > ../head
4745
popd
4846
rm -rf upstream/.git
49-
git add -f upstream head
47+
git add -f upstream head .konflux
5048
5149
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
5250
echo "No change, exiting"

0 commit comments

Comments
 (0)