From 5dc87af4cccb6173f07d1630b1ee086d9d70c1ff Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Fri, 14 Apr 2023 14:37:01 -0700 Subject: [PATCH] Move upload logs up in the action sequence so it captures data before it gets deleted. --- action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 035ace6..3e0dd2f 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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