-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (33 loc) · 1018 Bytes
/
update-pdfium.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
name: Check for new PDFium releases
# on:
# schedule:
# # This will run at 00:00 every Saturday
# - cron: '0 0 * * 6'
on: workflow_dispatch
jobs:
check-for-updates:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v3
# Set up Node.js
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18.x'
# Install dependencies
- name: Install dependencies
run: npm ci
# Check for updates and create PR
- name: Check for updates and create PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run check-updates
- name: Commit and push changes
run: |
git config --global user.name 'Your Name'
git config --global user.email '[email protected]'
git switch -c update-pdfium
git commit -am "Update PDFium"
git push origin update-pdfium