-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.35 KB
/
update-public.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
# This is a basic workflow to help you get started with Actions
name: Update Public CDN 0.0.5
# description: manage the public CDN
on:
schedule:
- cron: '45 0 * * *'
workflow_dispatch:
jobs:
update-public:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: install node packages
run: npm install
- name: Update CDN
run: yarn update-cdn
env:
APP_AWS_BUCKET: ${{secrets.APP_AWS_BUCKET}}
APP_AWS_REGION: ${{secrets.APP_AWS_REGION}}
APP_AWS_ACCOUNT_ID: ${{secrets.APP_AWS_ACCOUNT_ID}}
APP_AWS_ACCESS_KEY_ID: ${{secrets.APP_AWS_ACCESS_KEY_ID}}
APP_AWS_SECRET_ACCESS_KEY: ${{secrets.APP_AWS_SECRET_ACCESS_KEY}}
- name: timestamp update
run: yarn timestamp-update
env:
TIMESTAMP_PATH: ./scripts/update-cdn-last-run.txt
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Atlas Bot"
git add -A
git commit -m "Repair AV [skip ci]" -a
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main