Skip to content

Commit

Permalink
fix: action
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Nov 26, 2024
1 parent 54dde82 commit 8f3549f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/prettier-label-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ jobs:
git push origin HEAD:${{ github.event.pull_request.head.ref }}
# Remove the label after formatting
- name: Remove formatting label
if: always()
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'prettier'
})
# todo: label removal is flaky, disabled for now
# - name: Remove formatting label
# if: always()
# uses: actions/github-script@v7
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# github.rest.issues.removeLabel({
# owner: context.repo.owner,
# repo: context.repo.repo,
# issue_number: context.issue.number,
# name: 'prettier'
# })

0 comments on commit 8f3549f

Please sign in to comment.