@@ -765,6 +765,54 @@ jobs:
765765 fi
766766 gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update OWNERS file" --body "Update OWNERS file" || true
767767 working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/client
768+ - env :
769+ GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
770+ GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
771+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
772+ name : ' [client - release-v1.20] Create Konflux PR'
773+ run : |
774+ set -x
775+ repo="client"
776+ branch="sync-konflux-release-v1.20"
777+ target_branch="release-v1.20"
778+ git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
779+ remote_exists=$(git ls-remote --heads fork "$branch")
780+ if [ -z "$remote_exists" ]; then
781+ # remote doesn't exist.
782+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
783+ fi
784+ git fetch fork "$branch"
785+ if git diff --quiet "fork/$branch" "$branch"; then
786+ echo "Branches are identical. No need to force push."
787+ else
788+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
789+ fi
790+ gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" || true
791+ working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/client
792+ - env :
793+ GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
794+ GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
795+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
796+ name : ' [client - release-v1.20] Create OWNERS file update PR'
797+ run : |
798+ set -x
799+ repo="client"
800+ branch="sync-owners-release-v1.20"
801+ target_branch="release-v1.20"
802+ git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
803+ remote_exists=$(git ls-remote --heads fork "$branch")
804+ if [ -z "$remote_exists" ]; then
805+ # remote doesn't exist.
806+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
807+ fi
808+ git fetch fork "$branch"
809+ if git diff --quiet "fork/$branch" "$branch"; then
810+ echo "Branches are identical. No need to force push."
811+ else
812+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
813+ fi
814+ gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update OWNERS file" --body "Update OWNERS file" || true
815+ working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/client
768816 - env :
769817 GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
770818 GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
@@ -1029,6 +1077,54 @@ jobs:
10291077 fi
10301078 gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update OWNERS file" --body "Update OWNERS file" || true
10311079 working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/eventing-integrations
1080+ - env :
1081+ GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
1082+ GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
1083+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
1084+ name : ' [eventing-integrations - release-v1.20] Create Konflux PR'
1085+ run : |
1086+ set -x
1087+ repo="eventing-integrations"
1088+ branch="sync-konflux-release-v1.20"
1089+ target_branch="release-v1.20"
1090+ git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
1091+ remote_exists=$(git ls-remote --heads fork "$branch")
1092+ if [ -z "$remote_exists" ]; then
1093+ # remote doesn't exist.
1094+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
1095+ fi
1096+ git fetch fork "$branch"
1097+ if git diff --quiet "fork/$branch" "$branch"; then
1098+ echo "Branches are identical. No need to force push."
1099+ else
1100+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
1101+ fi
1102+ gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" || true
1103+ working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/eventing-integrations
1104+ - env :
1105+ GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
1106+ GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
1107+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
1108+ name : ' [eventing-integrations - release-v1.20] Create OWNERS file update PR'
1109+ run : |
1110+ set -x
1111+ repo="eventing-integrations"
1112+ branch="sync-owners-release-v1.20"
1113+ target_branch="release-v1.20"
1114+ git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
1115+ remote_exists=$(git ls-remote --heads fork "$branch")
1116+ if [ -z "$remote_exists" ]; then
1117+ # remote doesn't exist.
1118+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
1119+ fi
1120+ git fetch fork "$branch"
1121+ if git diff --quiet "fork/$branch" "$branch"; then
1122+ echo "Branches are identical. No need to force push."
1123+ else
1124+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
1125+ fi
1126+ gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update OWNERS file" --body "Update OWNERS file" || true
1127+ working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/eventing-integrations
10321128 - env :
10331129 GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
10341130 GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
@@ -1893,6 +1989,54 @@ jobs:
18931989 fi
18941990 gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update OWNERS file" --body "Update OWNERS file" || true
18951991 working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/eventing
1992+ - env :
1993+ GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
1994+ GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
1995+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
1996+ name : ' [eventing - release-v1.20] Create Konflux PR'
1997+ run : |
1998+ set -x
1999+ repo="eventing"
2000+ branch="sync-konflux-release-v1.20"
2001+ target_branch="release-v1.20"
2002+ git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
2003+ remote_exists=$(git ls-remote --heads fork "$branch")
2004+ if [ -z "$remote_exists" ]; then
2005+ # remote doesn't exist.
2006+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
2007+ fi
2008+ git fetch fork "$branch"
2009+ if git diff --quiet "fork/$branch" "$branch"; then
2010+ echo "Branches are identical. No need to force push."
2011+ else
2012+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
2013+ fi
2014+ gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" || true
2015+ working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/eventing
2016+ - env :
2017+ GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
2018+ GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
2019+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
2020+ name : ' [eventing - release-v1.20] Create OWNERS file update PR'
2021+ run : |
2022+ set -x
2023+ repo="eventing"
2024+ branch="sync-owners-release-v1.20"
2025+ target_branch="release-v1.20"
2026+ git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
2027+ remote_exists=$(git ls-remote --heads fork "$branch")
2028+ if [ -z "$remote_exists" ]; then
2029+ # remote doesn't exist.
2030+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
2031+ fi
2032+ git fetch fork "$branch"
2033+ if git diff --quiet "fork/$branch" "$branch"; then
2034+ echo "Branches are identical. No need to force push."
2035+ else
2036+ git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
2037+ fi
2038+ gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update OWNERS file" --body "Update OWNERS file" || true
2039+ working-directory : ./src/github.com/openshift-knative/hack/openshift-knative/eventing
18962040 - env :
18972041 GH_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
18982042 GITHUB_TOKEN : ${{ secrets.SERVERLESS_QE_ROBOT }}
0 commit comments