Skip to content

Commit 1937dc3

Browse files
author
pytorchbot
committed
2024-02-14 nightly release (f21c6bd)
1 parent 9590fc6 commit 1937dc3

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/pr-labels.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,33 @@ on:
88
jobs:
99
is-properly-labeled:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
1113

1214
steps:
1315
- name: Set up python
14-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1517

1618
- name: Install requests
1719
run: pip install requests
1820

1921
- name: Checkout repository
20-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2123

2224
- name: Process commit and find merger responsible for labeling
2325
id: commit
24-
run: echo "merger=$(python .github/process_commit.py ${{ github.sha }})" >> $GITHUB_OUTPUT
26+
run: |
27+
MERGER=$(python .github/process_commit.py ${{ github.sha }})
28+
echo "merger=${MERGER}" | tee --append $GITHUB_OUTPUT
2529
2630
- name: Ping merger responsible for labeling if necessary
2731
if: ${{ steps.commit.outputs.merger != '' }}
28-
uses: mshick/add-pr-comment@v1
32+
uses: mshick/add-pr-comment@v2
2933
env:
3034
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3135
with:
3236
message: |
3337
Hey ${{ steps.commit.outputs.merger }}!
3438
35-
You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py
39+
You merged this PR, but no labels were added.
40+
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

0 commit comments

Comments
 (0)