Skip to content

Commit

Permalink
use gh-find-current-pr to get current PR
Browse files Browse the repository at this point in the history
  • Loading branch information
kbkk committed Jun 7, 2020
1 parent 709ca8d commit 3a1e5d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/feature-branch-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ jobs:
infra="${infra//$'\n'/'%0A'}"
infra="${infra//$'\r'/'%0D'}"
echo "::set-output name=infra::$infra"
echo "::set-env name=PR_NUMBER::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")"
- uses: hmarr/[email protected]
- uses: jwalton/[email protected]
id: finder
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: marocchino/[email protected]
name: Add comment to PR
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
header: Infrastructure
number: $PR_NUMBER
number: ${{ steps.finder.outputs.pr }}
message: |
Infrastructure for commit `${{ github.sha }}`:
```
Expand Down

0 comments on commit 3a1e5d5

Please sign in to comment.