From 17a4e24a2edd3a7b862814b3b214efd76f496bbd Mon Sep 17 00:00:00 2001 From: Appu Goundan Date: Wed, 23 Oct 2024 11:27:37 -0400 Subject: [PATCH] Fix temurin updater Signed-off-by: Appu Goundan --- .github/workflows/update-temurin-packages.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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: