88 run-retagger :
99 uses : ./.github/workflows/ci-matrix-gen.yml
1010 with :
11- jobs_to_run : python-svm-build-gate-windows|^(?!.*(darwin|aarch64|linux)).*retagger.*$
11+ jobs_to_run : python-svm-build-gate-linux|python-unittest-retagger-gate-batch1
12+ # python-svm-build-gate-windows|^(?!.*(darwin|aarch64|linux)).*retagger.*$
1213
1314 merge_all_reports :
1415 runs-on : ubuntu-latest
1516 needs : run-retagger
1617 if : ${{ success() }}
18+ env :
19+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1720 steps :
1821
1922 - name : Actions/Checkout
2831 merge-multiple : true
2932 continue-on-error : true
3033
34+ - name : Init Github branch
35+ run : |
36+ echo "Set new repo origin url"
37+ git remote set-url origin https://$GH_TOKEN@github.com/${{ github.repository }}.git
38+ git remote -v
39+ git config --global user.name "Retagger Workflow"
40+ git config --global user.email "Retagger_Workflow@oracle.com"
41+ git fetch origin
42+ git checkout -b weekly_retagger_${{ github.run_id }} origin/master
43+
3144 - name : Merge retagger reports
3245 env :
3346 GITHUB_CI : true
@@ -42,12 +55,11 @@ jobs:
4255 echo "Merging tags for $os"
4356 python3 .github/scripts/merge_retagger_results.py --dir ../retagger-reports --outfile "../retagger-reports/reports-merged-$os.json" --pattern "*$os*" || true
4457 python3 graalpython/com.oracle.graal.python.test/src/runner.py merge-tags-from-report "../retagger-reports/reports-merged-$os.json" --platform "$os" || true
45- git diff > "../diffs/reports_diff-$os" || true
58+ git add -A
59+ git commit -m "Apply retags for $os"
4660 done
47-
48- - name : Export reports diff file
49- uses : actions/upload-artifact@v5
50- with :
51- name : retagger.diff
52- path : diffs/reports_diff*
53- retention-days : 15
61+
62+ - name : Push updates
63+ run : |
64+ git push --set-upstream origin weekly_retagger_${{ github.run_id }}
65+ gh pr create -B master -d --title "[WORKFLOW] Weekly Retagger: Update tags" --body "Applied weekly retags on $os_list"
0 commit comments