From 87ce7bc40b49574bc6bf9e7243dab65220bbaadf Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 24 Oct 2022 12:27:29 +0200 Subject: [PATCH] ci: fix needs --- .github/workflows/insider-linux.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 666d1a3..52eefca 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -48,7 +48,8 @@ jobs: run: ./check_cron_or_pr.sh dependencies: - needs: check + needs: + - check runs-on: ubuntu-latest container: image: ${{ matrix.image }} @@ -104,9 +105,12 @@ jobs: with: name: remote-dependencies-${{ matrix.vscode_arch }} path: ./vscode/remote/node_modules + retention-days: ${{ needs.check.outputs.SHOULD_BUILD == 'yes' && 30 || 1 }} build: - needs: dependencies + needs: + - check + - dependencies runs-on: ubuntu-latest container: image: ${{ matrix.image }} @@ -186,7 +190,7 @@ jobs: with: name: remote-dependencies-${{ matrix.vscode_arch }} path: . - if: ${{ matrix.vscode_arch }} == 'x64' + if: env.SHOULD_BUILD == 'yes' && matrix.vscode_arch == 'x64' - name: Build env: @@ -214,7 +218,9 @@ jobs: if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes' aur: - needs: build + needs: + - check + - build runs-on: ubuntu-latest strategy: fail-fast: false @@ -240,7 +246,9 @@ jobs: aur_email: ${{ secrets.AUR_EMAIL }} snap: - needs: build + needs: + - check + - build runs-on: ubuntu-latest env: APP_NAME: codium