1
1
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2
- name : update-sources
2
+ name : update-sources-release-v1.17.x
3
3
4
4
on :
5
5
workflow_dispatch : {}
@@ -18,22 +18,22 @@ jobs:
18
18
- name : Checkout the current repo
19
19
uses : actions/checkout@v4
20
20
with :
21
- ref : main
21
+ ref : release-v1.17.x
22
22
23
23
- name : Clone tektoncd/pipeline
24
24
run : |
25
25
rm -fR upstream
26
- git clone https://github.com/tektoncd/pipeline upstream
26
+ git clone https://github.com/tektoncd/pipeline}} upstream
27
27
pushd upstream
28
- git checkout -B main origin/main
28
+ git checkout -B release-v0.65.x origin/release-v0.65.x
29
29
popd
30
30
31
31
32
32
- name : Commit new changes
33
33
run : |
34
34
git config user.name openshift-pipelines-bot
35
35
git config user.email [email protected]
36
- git checkout -b actions/update/sources-main
36
+ git checkout -b actions/update/sources-release-v1.17.x
37
37
pushd upstream
38
38
OLD_COMMIT=$(cat ../head)
39
39
NEW_COMMIT=$(git rev-parse HEAD)
@@ -53,22 +53,22 @@ jobs:
53
53
fi
54
54
55
55
git commit -F- <<EOF
56
- [bot] Update main from tektoncd/pipeline to ${NEW_COMMIT}
56
+ [bot] Update release-v1.17.x from tektoncd/pipeline to ${NEW_COMMIT}
57
57
58
58
$ git diff --stat ${NEW_COMMIT}..${OLD_COMMIT}
59
59
$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)
60
60
61
61
https://github.com/tektoncd/pipeline/compare/${NEW_COMMIT}..${OLD_COMMIT}
62
62
EOF
63
63
64
- git push -f origin actions/update/sources-main
64
+ git push -f origin actions/update/sources-release-v1.17.x
65
65
66
- if [ "$(gh pr list --base main --head actions/update/sources-main --json url --jq 'length')" = "0" ]; then
66
+ if [ "$(gh pr list --base release-v1.17.x --head actions/update/sources-release-v1.17.x --json url --jq 'length')" = "0" ]; then
67
67
echo "creating PR..."
68
- gh pr create -B main -H actions/update/sources-main --label=automated --label=upstream --fill
68
+ gh pr create -B release-v1.17.x -H actions/update/sources-release-v1.17.x --label=automated --label=upstream --fill
69
69
else
70
70
echo "a PR already exists, editing..."
71
- gh pr edit --title "[bot] Update main from tektoncd/pipeline to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
71
+ gh pr edit --title "[bot] Update release-v1.17.x from tektoncd/pipeline to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
72
72
fi
73
73
env :
74
74
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments