1
1
# 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
3
3
4
4
on :
5
5
workflow_dispatch : {}
18
18
- name : Checkout the current repo
19
19
uses : actions/checkout@v4
20
20
with :
21
- ref : release-v1.19.x]
21
+ ref : release-v1.19.x
22
22
23
23
- name : Clone tektoncd/pipeline
24
24
run : |
31
31
run : |
32
32
git config user.name openshift-pipelines-bot
33
33
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
35
35
touch head
36
36
pushd upstream
37
37
OLD_COMMIT=$(cat ../head)
@@ -52,22 +52,22 @@ jobs:
52
52
fi
53
53
54
54
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}
56
56
57
57
$ git diff --stat ${NEW_COMMIT}..${OLD_COMMIT}
58
58
$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)
59
59
60
60
https://github.com/tektoncd/pipeline/compare/${NEW_COMMIT}..${OLD_COMMIT}
61
61
EOF
62
62
63
- git push -f origin actions/update/sources-release-v1.19.x]
63
+ git push -f origin actions/update/sources-release-v1.19.x
64
64
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
66
66
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
68
68
else
69
69
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)"
71
71
fi
72
72
env :
73
73
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments