Skip to content

Commit 527cd3e

Browse files
authored
ci: update of files from global .github repo (#1095)
1 parent 791cfff commit 527cd3e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/help-command.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010

1111
jobs:
1212
create_help_comment_pr:
13-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
13+
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Add comment to PR
17-
uses: actions/github-script@v6
17+
uses: actions/github-script@v7
1818
with:
1919
github-token: ${{ secrets.GH_TOKEN }}
2020
script: |
@@ -39,11 +39,11 @@ jobs:
3939
})
4040

4141
create_help_comment_issue:
42-
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
42+
if: ${{ !github.event.issue.pull_request && startsWith(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Add comment to Issue
46-
uses: actions/github-script@v6
46+
uses: actions/github-script@v7
4747
with:
4848
github-token: ${{ secrets.GH_TOKEN }}
4949
script: |

.github/workflows/transfer-issue.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
types:
99
- created
1010

11+
permissions:
12+
issues: write
13+
1114
jobs:
1215
transfer:
1316
if: ${{(!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot') && (startsWith(github.event.comment.body, '/transfer-issue') || startsWith(github.event.comment.body, '/ti'))}}
@@ -17,8 +20,9 @@ jobs:
1720
uses: actions/checkout@v4
1821
- name: Extract Input
1922
id: extract_step
23+
env:
24+
COMMENT: "${{ github.event.comment.body }}"
2025
run: |
21-
COMMENT="${{github.event.comment.body}}"
2226
REPO=$(echo $COMMENT | awk '{print $2}')
2327
echo repo=$REPO >> $GITHUB_OUTPUT
2428
- name: Check Repo
@@ -53,5 +57,5 @@ jobs:
5357
run: |
5458
gh issue transfer ${{github.event.issue.number}} asyncapi/${{steps.extract_step.outputs.repo}}
5559
env:
56-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5761

0 commit comments

Comments
 (0)