Skip to content

Commit

Permalink
chore: do not use actions-ecosystem/action-add-labels (#3055)
Browse files Browse the repository at this point in the history
That action seems to be unmaintained and causes warnings
(actions-ecosystem/action-add-labels#459).

Let's just use the API directly, like we already do in
`.github/workflows/labels-from-comments.yml`
  • Loading branch information
nomeata authored Dec 12, 2023
1 parent 6a629f7 commit de7d78a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,15 @@ jobs:

- name: Add label
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
uses: actions-ecosystem/action-add-labels@v1
uses: actions/github-script@v7
with:
number: ${{ steps.workflow-info.outputs.pullRequestNumber }}
labels: toolchain-available
script: |
await github.rest.issues.addLabels({
issue_number: ${{ steps.workflow-info.outputs.pullRequestNumber }},
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['toolchain-available']
})
# Next, determine the most recent nightly release in this PR's history.
- name: Find most recent nightly
Expand Down

0 comments on commit de7d78a

Please sign in to comment.