-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (43 loc) · 1.47 KB
/
update-corpus-wiki.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
name: Update veraPDF corpus wiki
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
build:
name: Checkout and Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: JDK setup
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'temurin'
cache: maven
- name: Generate wiki files
run: |
cd corpus-wiki-generation
java -jar corpus-wiki-generator-1.0-SNAPSHOT.jar
- name: Commit to veraPDF-corpus.wiki
uses: drud/action-cross-commit@master
with:
source-folder: corpus-wiki-generation/output
destination-repository: https://veraPDF:${{ secrets.WORKFLOW_TOKEN }}@github.com/veraPDF/veraPDF-corpus.wiki
destination-folder: .
destination-branch: master
git-user: "Git User"
git-commit-message: "Update veraPDF-corpus wiki"
git-commit-sign-off: "false"
excludes: .git:Home.md:Undefined-test-corpus.md:ISO32000-1-test-corpus.md:ISO32000-2-test-corpus.md:TWGtestfiles-test-corpus.md
- name: Notify slack if wiki wasn't updated
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C03E3JJGLQL
status: FAILED
color: danger