aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/NotEnoughUpdates-REPO-Workflow.yml
blob: c2d5dc6c824232c419d345e25ecc642176c39964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: NotEnoughUpdates REPO Workflow

# Controls when the action will run. 
on:
  pull_request_target:
    branches: [ master ]
  push:
    branches: [ master ]
  workflow_dispatch:

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: 
        repo-token: ${{secrets.GITHUB_TOKEN}}