Skip to content

Commit

Permalink
Reorder steps in the format workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Feb 3, 2025
1 parent dd046c3 commit 219868b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ jobs:
pull-requests: write

steps:
# Remove label first to avoid hanging labels in case the rest of the job fails
- name: Remove label
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh pr edit ${{ github.event.pull_request.number }}
--repo ${{ github.event.repository.full_name }}
--remove-label format
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand Down Expand Up @@ -114,4 +105,13 @@ jobs:
run: >
gh pr comment ${{ github.event.pull_request.number }}
--repo ${{ github.event.repository.full_name }}
--body "Formatting has been verified and fixed. Please pull the latest changes to avoid conflicts."
--body "Formatting has been verified and fixed. Please pull the latest changes to avoid conflicts."
- name: Remove label
if: ${{ always() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh pr edit ${{ github.event.pull_request.number }}
--repo ${{ github.event.repository.full_name }}
--remove-label format

0 comments on commit 219868b

Please sign in to comment.