Skip to content

Commit f161087

Browse files
committed
Add retagger label to PR
1 parent 44375f0 commit f161087

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci-unittest-retagger.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ jobs:
88
run-retagger:
99
uses: ./.github/workflows/ci-matrix-gen.yml
1010
with:
11-
jobs_to_run: python-svm-build-gate-linux|python-unittest-retagger-gate-batch1
12-
#python-svm-build-gate-windows|^(?!.*(darwin|aarch64|linux)).*retagger.*$
11+
jobs_to_run: python-svm-build-gate-linux-amd64|python-unittest-retagger
1312

1413
merge_all_reports:
1514
runs-on: ubuntu-latest
@@ -32,6 +31,7 @@ jobs:
3231
continue-on-error: true
3332

3433
- name: Init Github branch
34+
working-directory: main
3535
run: |
3636
echo "Set new repo origin url"
3737
git remote set-url origin https://$GH_TOKEN@github.com/${{ github.repository }}.git
@@ -50,16 +50,18 @@ jobs:
5050
ls && ls ..
5151
mv retagger-report*.json ../retagger-reports
5252
53-
declare -a os_list=("linux-x86_64" "linux-aarch64" "darwin-x86_64" "win32-AMD64")
53+
declare -a os_list=("linux-x86_64" "linux-aarch64" "win32-AMD64")
5454
for os in "${os_list[@]}"; do
5555
echo "Merging tags for $os"
5656
python3 .github/scripts/merge_retagger_results.py --dir ../retagger-reports --outfile "../retagger-reports/reports-merged-$os.json" --pattern "*$os*" || true
5757
python3 graalpython/com.oracle.graal.python.test/src/runner.py merge-tags-from-report "../retagger-reports/reports-merged-$os.json" --platform "$os" || true
5858
git add -A
59-
git commit -m "Apply retags for $os"
59+
git commit -m "Apply retags for $os" || true
6060
done
6161
62-
- name: Push updates
62+
- name: Push updates to a new PR
63+
working-directory: main
6364
run: |
6465
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"
66+
gh label create "weekly-retagger" --color "BDDFDF" -d "[DO NOT ADD] Automatically set to weekly retagger PR" || echo "Label 'weekly-retagger' already exists"
67+
gh pr create -B master --title "[WORKFLOW] Weekly Retagger: Update tags" --body "Applied weekly retags on $os_list" -l "weekly-retagger"

0 commit comments

Comments
 (0)