From 60ebbedbf8739cda850584e81aa94af502de7bf6 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Thu, 13 Jun 2024 20:16:43 +0200 Subject: [PATCH] build: add flag to disable snaps --- .github/workflows/insider-linux.yml | 3 ++- .github/workflows/stable-linux.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 5f81a8a9b98..80295b47086 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -419,6 +419,7 @@ jobs: - build runs-on: ubuntu-latest env: + DISABLE_SNAP: ${{ secrets.DISABLE_SNAP }} RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }} SNAP_NAME: codium-insiders strategy: @@ -427,7 +428,7 @@ jobs: platform: - amd64 - arm64 - if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && secrets.DISABLE_SNAP != 'yes' + if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && env.DISABLE_SNAP != 'yes' steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index 05e115dd379..42dfd8bedfc 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -415,6 +415,7 @@ jobs: - build runs-on: ubuntu-latest env: + DISABLE_SNAP: ${{ secrets.DISABLE_SNAP }} RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }} SNAP_NAME: codium strategy: @@ -423,7 +424,7 @@ jobs: platform: - amd64 - arm64 - if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && secrets.DISABLE_SNAP != 'yes' + if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && env.DISABLE_SNAP != 'yes' steps: - uses: actions/checkout@v3