Skip to content

Commit

Permalink
ci: add reaction action
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
  • Loading branch information
shanduur committed Nov 28, 2024
1 parent 99b559b commit 37941df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/command.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Trigger CI on Comment
name: command

on:
issue_comment:
Expand All @@ -16,16 +16,19 @@ jobs:
pull-requests: write

steps:
- uses: dkershner6/reaction-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: fregante/setup-git-user@v2
- id: extract_info
env:
GH_TOKEN: ${{ github.token }}
run: |
./hack/comment.sh "${{ github.event.comment.body }}" "${GITHUB_ENV}"
- run: |
- env:
GH_TOKEN: ${{ github.token }}
run: |
PR_NUMBER=${{ github.event.issue.number }}
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName --jq '.headRefName')
git fetch origin $BRANCH_NAME
Expand Down

0 comments on commit 37941df

Please sign in to comment.