Skip to content

Update

Update #169

Workflow file for this run

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 '[email protected]'
- 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