Skip to content

Commit

Permalink
Hopefully fix the autolabel script
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt authored Jun 6, 2021
1 parent dad5444 commit 6251bc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/autolabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: satackey/action-js-inline@bf6fcaf35de1ed03bcfd25a0a8b1fa4c551ec908
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
script: |
const core = require('@actions/core');
const github = require('@actions/github');
const octokit = github.getOctokit(core.getInput('token'));
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
const {repo, owner, number} = github.context.issue;
await octokit.issues.addLabels({repo, owner, issue_number: number, labels: ['unconfirmed']});

0 comments on commit 6251bc1

Please sign in to comment.