From 421f5db3982f8b4a31fcdcff50a4c3e7f6f285c5 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Fri, 17 Sep 2021 23:14:21 +0200 Subject: Fix workflow (#618) * Update NotEnoughUpdates-REPO-Workflow.yml * Update and rename NotEnoughUpdates-REPO-Workflow.yml to NotEnoughUpdates-REPO-Workflow-PR.yml * Create NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Delete NotEnoughUpdates-REPO-Workflow-PR.yml * Update AATROX_BATPHONE.json * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml * remove test * Update NotEnoughUpdates-REPO-Workflow.yml * Update NotEnoughUpdates-REPO-Workflow.yml --- .github/workflows/NotEnoughUpdates-REPO-Workflow.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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: -- cgit