Skip to content

Commit

Permalink
Update transfer-issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Sep 19, 2024
1 parent 24e9552 commit 76ee381
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/transfer-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,20 @@ on:
types:
- created


jobs:
transfer:
if: ${{(!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot') && (startsWith(github.event.comment.body, '/trasfer-issue') || startsWith(github.event.comment.body, '/ti'))}}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install GitHub CLI
run: |
sudo apt-get update
sudo apt-get install gh
- name: Authenticate GitHub CLI
run: |
gh action login --with-token <<< "${{ secrets.GH_TOKEN }}"
- name: Extract Input
id: extract_step
run: |
COMMENT="${{github.event.comment.body}}"
REPO=$(echo $COMMENT | awk '{print $2}')
echo repo=$REPO >> $GITHUB_OUTPUT
- name: Trasfer Issue
working-directory: ./
run: |
gh issue transfer ${{github.event.issue.number}} asyncapi/${{steps.extract_step.outputs.repo}}

0 comments on commit 76ee381

Please sign in to comment.