Skip to content

Commit d9107a5

Browse files
authored
Merge pull request #134 from flyway/fix-ci-maven-workflow
Fix ci maven workflow
2 parents f7c1db2 + cfb90d9 commit d9107a5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/maven.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13+
if: github.actor != 'flyway-flyway-github-actions[bot]'
1314
runs-on: ubuntu-latest
1415
permissions:
1516
id-token: write
@@ -52,6 +53,9 @@ jobs:
5253
distribution: 'temurin'
5354
cache: 'maven'
5455

56+
- name: Build with Maven
57+
run: mvn -B install --file pom.xml
58+
5559
- name: Configure Git
5660
if: github.ref == 'refs/heads/main'
5761
run: |
@@ -88,9 +92,6 @@ jobs:
8892
git push
8993
git push --tags
9094
91-
- name: Build with Maven
92-
run: mvn -B install --file pom.xml
93-
9495
- name: Publish to GitHub Packages Apache Maven
9596
if: github.ref == 'refs/heads/main'
9697
run: mvn -B jar:jar deploy:deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl '!flyway-community-db-support-archetype'

0 commit comments

Comments
 (0)