Skip to content

Commit

Permalink
fix(githubactions): Migrate approve_package_bumps to actions/github-s…
Browse files Browse the repository at this point in the history
…cripts action (#8682)

the previous action actions/github is deprecated and stopped working
  • Loading branch information
christopherthielen committed Oct 26, 2020
1 parent 0b1e297 commit 076c3da
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/approve_package_bumps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ jobs:

- name: Add ready to merge label
if: steps.purebump.outputs.ispurebump == 'true'
uses: actions/github@v1.0.0
# pin to v3.0.0 tag by commit hash
uses: actions/github-script@626af12
with:
args: label "ready to merge"
env:
GITHUB_TOKEN: ${{ secrets.SPINNAKERBOT_TOKEN }}
github-token: ${{ secrets.SPINNAKERBOT_TOKEN }}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['ready to merge']
})

0 comments on commit 076c3da

Please sign in to comment.