Move upload logs up in the action sequence so it captures data before it gets deleted.

This commit is contained in:
awalsh128 2023-04-14 14:37:01 -07:00
parent bf94842250
commit 5dc87af4cc

View file

@ -83,6 +83,13 @@ runs:
DEBUG: "${{ inputs.debug }}" DEBUG: "${{ inputs.debug }}"
PACKAGES: "${{ inputs.packages }}" PACKAGES: "${{ inputs.packages }}"
- id: upload-logs
if: ${{ inputs.debug == 'true' }}
uses: actions/upload-artifact@v3
with:
name: cache-apt-pkgs-logs_${{ env.CACHE_KEY }}
path: ~/cache-apt-pkgs/*.log
- id: save-cache - id: save-cache
if: ${{ ! steps.load-cache.outputs.cache-hit }} if: ${{ ! steps.load-cache.outputs.cache-hit }}
uses: actions/cache/save@v3 uses: actions/cache/save@v3
@ -94,10 +101,3 @@ runs:
run: | run: |
rm -rf ~/cache-apt-pkgs rm -rf ~/cache-apt-pkgs
shell: bash shell: bash
- id: upload-logs
if: ${{ inputs.debug == 'true' }}
uses: actions/upload-artifact@v3
with:
name: cache-apt-pkgs-logs_${{ env.CACHE_KEY }}
path: ~/cache-apt-pkgs/*.log