Browse Source

ci: fix retention days

Baptiste Augrain 2 years ago
parent
commit
6694eb6755
1 changed files with 6 additions and 1 deletions
  1. 6 1
      .github/workflows/insider-linux.yml

+ 6 - 1
.github/workflows/insider-linux.yml

@@ -105,7 +105,7 @@ jobs:
         with:
         with:
           name: remote-dependencies-${{ matrix.vscode_arch }}
           name: remote-dependencies-${{ matrix.vscode_arch }}
           path: ./vscode/remote/node_modules
           path: ./vscode/remote/node_modules
-          retention-days: ${{ needs.check.outputs.SHOULD_BUILD == 'yes' && 30 || 1 }}
+          retention-days: ${{ needs.check.outputs.SHOULD_DEPLOY == 'yes' && 30 || 1 }}
 
 
   build:
   build:
     needs:
     needs:
@@ -143,6 +143,11 @@ jobs:
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
 
 
     steps:
     steps:
+      - name: Re-export env variables
+        run: |
+          echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}"
+          echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}"
+
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
         with:
         with:
           ref: ${{ env.GITHUB_BRANCH }}
           ref: ${{ env.GITHUB_BRANCH }}