Skip to content

Commit

Permalink
Merge pull request #1701 from GoogleContainerTools/update-lockfile-java
Browse files Browse the repository at this point in the history
Fix temurin updater
  • Loading branch information
loosebazooka authored Oct 23, 2024
2 parents 3153a4d + 17a4e24 commit c188574
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/update-temurin-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit c188574

Please sign in to comment.