-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix github actions for updating jakarta branch
- Loading branch information
1 parent
d8e7d58
commit 2229425
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
|
||
jobs: | ||
checkout-and-build: | ||
if: github.repository == 'veraPDF/veraPDF-pdfbox-validation' | ||
runs-on: ubuntu-latest | ||
|
||
|
||
|
@@ -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 | ||
|
@@ -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: | | ||
|
@@ -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')) | ||
|