Skip to content

Commit

Permalink
do not aggregate on no cache found
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn committed Oct 7, 2024
1 parent 2d2fff7 commit 55b7482
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/aggregate-worker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Ensure folders exist
run: |
mkdir -p ${{ env.AGG }}
mkdir -p ${{ env.REPO }}
- name: Fetch results of ${{ inputs.worker }}
id: restore
uses: actions/cache/restore@v4
Expand All @@ -21,7 +25,8 @@ runs:
apt-repo-${{ inputs.stage }}-${{ inputs.worker }}-${{ github.sha }}-${{ github.run_id }}
- name: Aggregate files
shell: bash
if: ${{ steps.restore.outputs.cache-hit != '' }}
# if ANY cache was found (i.e., the one from this attempt or a previous one)
if: steps.restore.outputs.cache-hit == 'true' || steps.restore.outputs.cache-hit == 'false'
run: |
cat ${{ env.REPO }}/pkg_build_status.csv >> ${{ env.AGG }}/pkg_build_status.csv
cat ${{ env.REPO }}/sources.repos |
Expand Down

0 comments on commit 55b7482

Please sign in to comment.