diff options
Diffstat (limited to '.github/workflows/NotEnoughUpdates-REPO-Workflow.yml')
-rw-r--r-- | .github/workflows/NotEnoughUpdates-REPO-Workflow.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/NotEnoughUpdates-REPO-Workflow.yml b/.github/workflows/NotEnoughUpdates-REPO-Workflow.yml index 8ea5c532..c2d5dc6c 100644 --- a/.github/workflows/NotEnoughUpdates-REPO-Workflow.yml +++ b/.github/workflows/NotEnoughUpdates-REPO-Workflow.yml @@ -12,8 +12,22 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Find HEAD + id: sha + run: | + if [ $EVENT == 'pull_request_target' ] + then + echo "::set-output name=sha::$PR" + else + echo "::set-output name=sha::$HEAD" + fi + env: + EVENT: ${{ github.event_name }} + PR: ${{ github.event.pull_request.head.sha }} + HEAD: ${{ github.context.sha }} - uses: actions/checkout@v2 - + with: + ref: ${{ steps.sha.outputs.sha }} - name: run-checks uses: NotEnoughUpdates/NotEnoughUpdates-REPO-Workflow@main with: |