Skip to content

Commit

Permalink
Move upload logs up in the action sequence so it captures data before…
Browse files Browse the repository at this point in the history
… it gets deleted.
  • Loading branch information
awalsh128 committed Apr 14, 2023
1 parent bf94842 commit 5dc87af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ runs:
DEBUG: "${{ inputs.debug }}"
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
if: ${{ ! steps.load-cache.outputs.cache-hit }}
uses: actions/cache/save@v3
Expand All @@ -94,10 +101,3 @@ runs:
run: |
rm -rf ~/cache-apt-pkgs
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

0 comments on commit 5dc87af

Please sign in to comment.