Skip to content

Commit e9eb2bc

Browse files
openshift-pipelines-botwaveywaves
authored andcommitted
[bot:main] update konflux configuration
1 parent 1d0688c commit e9eb2bc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/auto-merge-upstream-release-v1.19.x].yaml renamed to .github/workflows/auto-merge-upstream-release-v1.19.x.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
2-
name: auto-merge-upstream-release-v1.19.x]
2+
name: auto-merge-upstream-release-v1.19.x
33

44
on:
55
workflow_dispatch: {}
@@ -15,13 +15,13 @@ jobs:
1515
steps:
1616
- name: Checkout the current repo
1717
uses: actions/checkout@v4
18-
- name: auto-merge-upstream-release-v1.19.x]
18+
- name: auto-merge-upstream-release-v1.19.x
1919
run: |
2020
gh auth status
2121
git config user.name openshift-pipelines-bot
2222
git config user.email [email protected]
2323
# Approve and merge pull-request with no reviews
24-
for p in $(gh pr list --search "head:actions/update/sources-release-v1.19.x]" --json "number" | jq ".[].number"); do
24+
for p in $(gh pr list --search "head:actions/update/sources-release-v1.19.x" --json "number" | jq ".[].number"); do
2525
gh pr merge --rebase --delete-branch --auto $p
2626
done
2727
env:

.github/workflows/update-sources-release-v1.19.x].yaml renamed to .github/workflows/update-sources-release-v1.19.x.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
2-
name: update-sources-release-v1.19.x]
2+
name: update-sources-release-v1.19.x
33

44
on:
55
workflow_dispatch: {}
@@ -18,7 +18,7 @@ jobs:
1818
- name: Checkout the current repo
1919
uses: actions/checkout@v4
2020
with:
21-
ref: release-v1.19.x]
21+
ref: release-v1.19.x
2222

2323
- name: Clone tektoncd/pipeline
2424
run: |
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
git config user.name openshift-pipelines-bot
3333
git config user.email [email protected]
34-
git checkout -b actions/update/sources-release-v1.19.x]
34+
git checkout -b actions/update/sources-release-v1.19.x
3535
touch head
3636
pushd upstream
3737
OLD_COMMIT=$(cat ../head)
@@ -52,22 +52,22 @@ jobs:
5252
fi
5353
5454
git commit -F- <<EOF
55-
[bot] Update release-v1.19.x] from tektoncd/pipeline to ${NEW_COMMIT}
55+
[bot] Update release-v1.19.x from tektoncd/pipeline to ${NEW_COMMIT}
5656
5757
$ git diff --stat ${NEW_COMMIT}..${OLD_COMMIT}
5858
$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)
5959
6060
https://github.com/tektoncd/pipeline/compare/${NEW_COMMIT}..${OLD_COMMIT}
6161
EOF
6262
63-
git push -f origin actions/update/sources-release-v1.19.x]
63+
git push -f origin actions/update/sources-release-v1.19.x
6464
65-
if [ "$(gh pr list --base release-v1.19.x] --head actions/update/sources-release-v1.19.x] --json url --jq 'length')" = "0" ]; then
65+
if [ "$(gh pr list --base release-v1.19.x --head actions/update/sources-release-v1.19.x --json url --jq 'length')" = "0" ]; then
6666
echo "creating PR..."
67-
gh pr create -B release-v1.19.x] -H actions/update/sources-release-v1.19.x] --label=automated --label=upstream --fill
67+
gh pr create -B release-v1.19.x -H actions/update/sources-release-v1.19.x --label=automated --label=upstream --fill
6868
else
6969
echo "a PR already exists, editing..."
70-
gh pr edit --title "[bot] Update release-v1.19.x] from tektoncd/pipeline to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
70+
gh pr edit --title "[bot] Update release-v1.19.x from tektoncd/pipeline to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
7171
fi
7272
env:
7373
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)