Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
auhlig committed Jun 11, 2024
1 parent cc7aeeb commit 9118c85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ runs:
- name: Remove specific label from issue
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LABEL_TO_REMOVE="${{ inputs.label }}"
ISSUE_NUMBER=${{ github.event.issue.number }}
Expand All @@ -201,6 +199,6 @@ runs:
echo "Removing label ${LABEL_TO_REMOVE} from issue ${ISSUE_NUMBER}"
curl -s -X DELETE \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$OWNER/$REPO/issues/$ISSUE_NUMBER/labels/$LABEL_TO_REMOVE

0 comments on commit 9118c85

Please sign in to comment.