Skip to content

Commit

Permalink
Fix github actions for updating jakarta branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed May 21, 2024
1 parent d8e7d58 commit 2229425
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-jakarta-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
checkout-and-build:
if: github.repository == 'veraPDF/veraPDF-pdfbox-validation'
runs-on: ubuntu-latest


Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
git config user.name "Git User"
git config user.email "[email protected]"
- name: Add commit to the test branch
run: git cherry-pick -m 1 ${{ github.sha }}
run: git cherry-pick -m 1 ${{ github.event.before }}..${{ github.event.after }}
- name: Build project with Maven
if: success()
run: mvn --batch-mode --update-snapshots verify
Expand All @@ -63,7 +64,7 @@ jobs:
git config user.name "Git User"
git config user.email "[email protected]"
- name: Add commit to new branch
run: git cherry-pick -m 1 ${{ github.sha }}
run: git cherry-pick -m 1 ${{ github.event.before }}..${{ github.event.after }}
- name: Merge branch into jakarta
if: success()
run: |
Expand All @@ -79,6 +80,7 @@ jobs:
needs: [checkout-and-build, merge]
if: |
always() &&
github.repository == 'veraPDF/veraPDF-pdfbox-validation' &&
(contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'skipped') ||
contains(needs.*.result, 'cancelled'))
Expand Down

0 comments on commit 2229425

Please sign in to comment.