Skip to content

Commit

Permalink
Update github actions for updating arlington branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed May 21, 2024
1 parent 58105d0 commit e696538
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/trigger-increment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
trigger_build:
if: github.repository == 'veraPDF/veraPDF-apps'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/trigger-regression-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
trigger_build:
if: github.repository == 'veraPDF/veraPDF-apps'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-arlington-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-apps'
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -36,7 +37,7 @@ jobs:
git config user.name "Git User"
git config user.email "user@test.com"
- 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 @@ -62,7 +63,7 @@ jobs:
git config user.name "Git User"
git config user.email "user@temp.com"
- 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 arlington
if: success()
run: |
Expand All @@ -78,6 +79,7 @@ jobs:
needs: [checkout-and-build, merge]
if: |
always() &&
github.repository == 'veraPDF/veraPDF-apps' &&
(contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'skipped') ||
contains(needs.*.result, 'cancelled'))
Expand Down

0 comments on commit e696538

Please sign in to comment.