Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Feb 14, 2024
1 parent a52607e commit 1e5823c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,28 @@ jobs:

steps:
- name: Set up python
uses: actions/setup-python@v2
uses: actions/setup-python@v5

- name: Install requests
run: pip install requests

- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Process commit and find merger responsible for labeling
id: commit
run: echo "merger=$(python .github/process_commit.py ${{ github.sha }})" >> $GITHUB_OUTPUT
run: |
MERGER=$(python .github/process_commit.py ${{ github.sha }})
echo "merger=${MERGER}" | tee --append $GITHUB_OUTPUT
- name: Ping merger responsible for labeling if necessary
if: ${{ steps.commit.outputs.merger != '' }}
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: |
Hey ${{ steps.commit.outputs.merger }}!
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
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

0 comments on commit 1e5823c

Please sign in to comment.