44 workflow_dispatch : {}
55 push :
66 branches :
7- - next
7+ - release-v1.18.x
88 paths :
99 - .github/workflows/update-sources.yaml
1010jobs :
1717 - name : Checkout the current repo
1818 uses : actions/checkout@v4
1919 with :
20- ref : next
20+ ref : release-v1.18.x
2121
2222 - name : Clone tektoncd/pruner
2323 run : |
3333
3434 git config user.name openshift-pipelines-bot
3535 git config user.email pipelines-extcomm@redhat.com
36- git checkout -b actions/update/sources-next
36+ git checkout -b actions/update/sources-release-v1.18.x
3737 touch head
3838 pushd upstream
3939 OLD_COMMIT=$(cat ../head)
@@ -54,22 +54,22 @@ jobs:
5454 fi
5555
5656 git commit -F- <<EOF
57- [bot] Update next from tektoncd/pruner to ${NEW_COMMIT}
57+ [bot] Update release-v1.18.x from tektoncd/pruner to ${NEW_COMMIT}
5858
5959 $ git diff --stat ${NEW_COMMIT}..${OLD_COMMIT}
6060 $(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)
6161
6262 https://github.com/tektoncd/pruner/compare/${NEW_COMMIT}..${OLD_COMMIT}
6363 EOF
6464
65- git push -f origin actions/update/sources-next
65+ git push -f origin actions/update/sources-release-v1.18.x
6666
67- if [ "$(gh pr list --base next --head actions/update/sources-next --json url --jq 'length')" = "0" ]; then
67+ if [ "$(gh pr list --base release-v1.18.x --head actions/update/sources-release-v1.18.x --json url --jq 'length')" = "0" ]; then
6868 echo "creating PR..."
69- gh pr create -B next -H actions/update/sources-next --label=automated --label=upstream --fill
69+ gh pr create -B release-v1.18.x -H actions/update/sources-release-v1.18.x --label=automated --label=upstream --fill
7070 else
7171 echo "a PR already exists, editing..."
72- gh pr edit --title "[bot] Update next from tektoncd/pruner to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
72+ gh pr edit --title "[bot] Update release-v1.18.x from tektoncd/pruner to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
7373 fi
7474 env :
7575 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments