mirror of https://github.com/Desuuuu/klipper.git
workflows: Update invalid-label-bot.yaml to use actions/github-script@v6
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
021459e53e
commit
5e91c5de28
|
@ -8,9 +8,8 @@ jobs:
|
||||||
if: github.repository == 'Klipper3d/klipper'
|
if: github.repository == 'Klipper3d/klipper'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v3
|
- uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
if (context.payload.label.name != "not on github")
|
if (context.payload.label.name != "not on github")
|
||||||
return;
|
return;
|
||||||
|
@ -36,7 +35,7 @@ jobs:
|
||||||
+ "~ Your friendly GitIssueBot"
|
+ "~ Your friendly GitIssueBot"
|
||||||
+ "\n\n"
|
+ "\n\n"
|
||||||
+ "PS: I'm just an automated script, not a human being.";
|
+ "PS: I'm just an automated script, not a human being.";
|
||||||
github.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|
Loading…
Reference in New Issue