-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (35 loc) · 1016 Bytes
/
fetch-holidays.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
name: Fetch holidays
on:
workflow_dispatch:
schedule:
- cron: "5 1 * * *"
jobs:
fetch-holidays:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12"
cache: npm
- run: npm ci
- run: npm run fetch-holidays
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
- run: npm run build
- name: git-push(1)
run: ./scripts/git-push.sh
env:
COMMIT_MESSAGE: Update Holidays
BRANCH: update-holidays
- name: gh-pr-create(1)
run: |
cat <<BODY | ./scripts/gh-pr-create.sh
*This pull request was automatically created to make src/holidays.json the latest*.
Check the files changes and merge if the changes make sense.
BODY
env:
BRANCH: update-holidays
TITLE: Update Holidays
LABEL: enhancement
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}