From 428fd29a627bfe5747c31e692333ddf5800d21b9 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Tue, 12 Dec 2023 10:11:58 -0500 Subject: [PATCH] Java setup must be after checkout --- .github/workflows/pass-java-release.yml | 10 +++++----- .github/workflows/release.yml | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pass-java-release.yml b/.github/workflows/pass-java-release.yml index 3b59138d..9d15d8e8 100644 --- a/.github/workflows/pass-java-release.yml +++ b/.github/workflows/pass-java-release.yml @@ -17,6 +17,11 @@ jobs: RELEASE: ${{ inputs.releaseversion }} NEXT: ${{ inputs.nextversion }} steps: + - name: Checkout main + uses: actions/checkout@v3 + with: + path: main + - name: Setup Java & Maven uses: actions/setup-java@v3 with: @@ -29,11 +34,6 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: Checkout main - uses: actions/checkout@v3 - with: - path: main - - name: Get the artifact from the main POM working-directory: main run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 503f458d..b798510c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,9 @@ jobs: RELEASE: ${{ inputs.releaseversion }} NEXT: ${{ inputs.nextversion }} steps: + - name: Checkout latest code + uses: actions/checkout@v3 + - name: Setup Java & Maven uses: actions/setup-java@v3 with: @@ -39,9 +42,6 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: Checkout latest code - uses: actions/checkout@v3 - - name: Config git user run: | git config user.name ${{ github.actor }}