diff --git a/.github/workflows/update-temurin-packages.yml b/.github/workflows/update-temurin-packages.yml index 4643179b2..05f8d2456 100644 --- a/.github/workflows/update-temurin-packages.yml +++ b/.github/workflows/update-temurin-packages.yml @@ -22,8 +22,8 @@ jobs: - name: Update snapshots run: ./knife update-java-archives - - name: Create commits - id: create-commits + - name: Check for changes + id: check-changes run: | git status if [[ $(git status --porcelain) ]]; then @@ -32,7 +32,15 @@ jobs: echo "No changes detected" exit 0 fi - + + - name: Run update lockfile + if: env.DISTROLESS_DIFF + run: bazel mod deps --lockfile_mode=update + + - name: Create commits + if: env.DISTROLESS_DIFF + id: create commits + run: | git checkout -b update-java-archives # Set identity. @@ -44,10 +52,6 @@ jobs: git commit -s -m "Bumping temurin archives to latest stable versions" git push --force origin HEAD - - name: Run update lockfile - if: env.DISTROLESS_DIFF - run: bazel mod deps --lockfile_mode=update - - name: Create Pull Request if: env.DISTROLESS_DIFF env: