-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (49 loc) · 1.45 KB
/
update-PDFA-profiles-workflow.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
51
52
name: Update PDF_A profiles
on:
push:
branches:
[ integration ]
paths:
- 'PDF_A/1a/**'
- 'PDF_A/1b/**'
- 'PDF_A/2a/**'
- 'PDF_A/2b/**'
- 'PDF_A/2u/**'
- 'PDF_A/3a/**'
- 'PDF_A/3b/**'
- 'PDF_A/3u/**'
- 'PDF_A/4/**'
- 'PDF_A/4e/**'
- 'PDF_A/4f/**'
jobs:
update-profiles:
if: github.repository == 'veraPDF/veraPDF-validation-profiles'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.WORKFLOW_TOKEN }}
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Generate PDF_A profiles
run: |
curl -LO https://raw.githubusercontent.com/veraPDF/veraPDF-tools/master/profile-merger/profile-merger-1.0-SNAPSHOT.jar
java -jar profile-merger-1.0-SNAPSHOT.jar pdfa
rm profile-merger-1.0-SNAPSHOT.jar
git pull origin
- name: Push PDF_A profiles
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ${{ github.event.head_commit.message }}
- name: Notify slack if action didn't run
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