-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.52 KB
/
pull_request.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Pull Request
on: [pull_request]
jobs:
compile-and-auto-approve:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: asdf setup
uses: asdf-vm/actions/[email protected]
- name: Cache asdf dependencies
id: cache-asdf
uses: actions/cache@v2
env:
cache-name: cache-asdf-dependencies
with:
path: ~/.asdf
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('.tool_versions') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-
- name: set env
run: |
echo "NODEJS_CHECK_SIGNATURES=no" >> $GITHUB_ENV
- name: asdf install
if: steps.cache-asdf.outputs.cache-hit != 'true'
uses: asdf-vm/actions/[email protected]
- name: Cache yarn cache directory
id: yarn
uses: actions/cache@v2
env:
cache-name: cache-yarn-cache
with:
path: $(yarn cache dir)
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-
- name: Build
run: |
make build
- name: Approve pull request
uses: hmarr/[email protected]
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.action == 'renovate[bot]'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"