Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit ea6399b

Browse files
authored
ci: update of files from global .github repo (#230)
1 parent 6a65d88 commit ea6399b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/help-command.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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
@@ -39,7 +39,7 @@ 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

.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)