-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.15 KB
/
check-for-new-manifest.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
# This workflow runs every five minutes to check for a new manifest
name: Check for new manifest
on:
schedule:
- cron: '*/5 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
- name: Install
run: yarn install --frozen-lockfile --prefer-offline
- name: Check for manifest update
run: yarn manifest:check
env:
NETLIFY_HOOK_URL: ${{ secrets.NETLIFY_HOOK_URL }}
SKIP_CHECK: 'false'
- uses: dorny/paths-filter@v2
id: filter
with:
base: HEAD
filters: |
any:
- '**/*'
- name: Commit latest manifest version
if: ${{ steps.filter.outputs.any == 'true' }}
uses: stefanzweifel/git-auto-commit-action@v4.7.2
with:
commit_message: new manifest version
commit_user_name: D2 Arsenal Manifest Bot
commit_user_email: bot@d2arsenal.com
commit_author: D2 Arsenal Manifest Bot <bot@d2arsenal.com>