aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/NotEnoughUpdates-REPO-Workflow.yml
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-09-17 23:14:21 +0200
committerGitHub <noreply@github.com>2021-09-17 17:14:21 -0400
commit421f5db3982f8b4a31fcdcff50a4c3e7f6f285c5 (patch)
tree53e1a032716b1108e5352d9a11d8cbcfae16353f /.github/workflows/NotEnoughUpdates-REPO-Workflow.yml
parentc188080058f51b8dc6e583cb96c55a87374b1a52 (diff)
downloadNotEnoughUpdates-REPO-421f5db3982f8b4a31fcdcff50a4c3e7f6f285c5.tar.gz
NotEnoughUpdates-REPO-421f5db3982f8b4a31fcdcff50a4c3e7f6f285c5.tar.bz2
NotEnoughUpdates-REPO-421f5db3982f8b4a31fcdcff50a4c3e7f6f285c5.zip
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
Diffstat (limited to '.github/workflows/NotEnoughUpdates-REPO-Workflow.yml')
-rw-r--r--.github/workflows/NotEnoughUpdates-REPO-Workflow.yml16
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: