Skip to content

Commit

Permalink
chore(ci): add label to PR after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Jul 11, 2024
1 parent 3860855 commit ef4efdd
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
prs: ${{ steps.release.outputs.prs }}
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
Expand Down Expand Up @@ -67,16 +66,12 @@ jobs:
WINGET_PKGS_PRIVATE_KEY: ${{ secrets.WINGET_PKGS_PRIVATE_KEY }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

# Pending for https://github.com/googleapis/release-please-action/issues/776
# - uses: actions/github-script@v6
# with:
# script: |
# const prs = JSON.parse(${{ needs.release.outputs.prs }})
# for (const pr of prs) {
# github.rest.issues.addLabels({
# issue_number: pr.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# labels: ["autorelease: published"]
# })
# }
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["autorelease: published"]
})

0 comments on commit ef4efdd

Please sign in to comment.