Skip to content

Commit

Permalink
chore: updated validate-pr-template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaacharyaa authored May 23, 2024
1 parent 999b2af commit ddddc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate-pr-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
fi
- name: Set PR label based on validation
if: ${{ env.result == 'failure' }}
if: ${{ steps.validate.outputs.result == 'failure' }}
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "PR description needs formatting"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Remove PR label if validation passed
if: ${{ env.result == 'success' }}
if: ${{ steps.validate.outputs.result == 'success' }}
run: |
gh pr edit ${{ github.event.pull_request.number }} --remove-label "PR description needs formatting"
env:
Expand Down

0 comments on commit ddddc49

Please sign in to comment.