Skip to content

Commit

Permalink
Fix image cache naming differences on release
Browse files Browse the repository at this point in the history
Fixes difference between github.ref and github.base_ref
prefix, causing PRs into release branches to not use
the proper cache.
  • Loading branch information
authwait committed Feb 12, 2025
1 parent d17b55c commit ee5be4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_upload_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
- name: Build and upload based on release cache, update cache
if: github.event_name == 'push'
run: |
infra/base-images/aixcc_build_all.sh --cache-to "${{ github.ref }}" "${{ github.sha }}"
BRANCH_NAME="${{ github.ref }}"
infra/base-images/aixcc_build_all.sh --cache-to "${BRANCH_NAME#refs/heads/}" "${{ github.sha }}"
- name: Build and upload based on release cache, no cache update
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit ee5be4f

Please sign in to comment.