Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed May 21, 2024
1 parent 47c48a0 commit bc34008
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/options-tests-with-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
build:
if: github.repository == 'veraPDF/veraPDF-rest'
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/purge-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
purge-images:
if: github.repository == 'veraPDF/veraPDF-rest'
name: Delete old untagged images from ghcr.io
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
push_to_registry:
if: github.repository == 'veraPDF/veraPDF-rest'
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:

jobs:
publish:
if: github.repository == 'veraPDF/veraPDF-rest'
name: Build and push Docker image to GitHub packages
runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rest-api-tests-with-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
test:
if: github.repository == 'veraPDF/veraPDF-rest'
name: Rest-api tests running in Docker container
runs-on: ubuntu-latest
container: ubuntu
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-dkr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:

jobs:
push_to_registry:
if: github.repository == 'veraPDF/veraPDF-rest'
name: Build and push Docker image to GitHub packages
runs-on: ubuntu-latest

Expand Down
8 changes: 5 additions & 3 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-rest'
runs-on: ubuntu-latest

strategy:
Expand All @@ -31,12 +32,12 @@ jobs:
run: |
git fetch origin arlington:arlington
git checkout -b test-branch arlington
- name: Configure user nameF
- name: Configure user name
run: |
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 @@ -62,7 +63,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 arlington
if: success()
run: |
Expand All @@ -78,6 +79,7 @@ jobs:
needs: [checkout-and-build, merge]
if: |
always() &&
github.repository == 'veraPDF/veraPDF-rest' &&
(contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'skipped') ||
contains(needs.*.result, 'cancelled'))
Expand Down

0 comments on commit bc34008

Please sign in to comment.