-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 948 Bytes
/
update.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
name: Update
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
path: pdf.js
repository: mozilla/pdf.js
- name: Use Node.js
uses: actions/setup-node@v3
- name: Build
run: |
cd pdf.js
npm install --legacy-peer-deps
gulp publish
cd ..
cp -r pdf.js/build/generic/* .
- name: Config
run: |
git config --global user.name 'Mimi'
git config --global user.email 'stevenjoezhang@users.noreply.github.com'
- name: Commit
run: |
git add .
git commit -m 'Update pdf.js'
- name: Push
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push