瀏覽代碼

ci: re-export modified env variables

Baptiste Augrain 2 年之前
父節點
當前提交
36077f90dc
共有 1 個文件被更改,包括 7 次插入10 次删除
  1. 7 10
      .github/workflows/insider-linux.yml

+ 7 - 10
.github/workflows/insider-linux.yml

@@ -136,14 +136,13 @@ jobs:
       image: ${{ matrix.image }}
       image: ${{ matrix.image }}
       env:
       env:
         VSCODE_ARCH: ${{ matrix.vscode_arch }}
         VSCODE_ARCH: ${{ matrix.vscode_arch }}
+    outputs:
+      RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
+      SHOULD_BUILD: ${{ env.SHOULD_BUILD }}
+      SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}
     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 }}
@@ -220,7 +219,6 @@ jobs:
 
 
   aur:
   aur:
     needs:
     needs:
-      - check
       - build
       - build
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     strategy:
     strategy:
@@ -229,12 +227,12 @@ jobs:
         include:
         include:
         - package_name: vscodium-insiders-bin
         - package_name: vscodium-insiders-bin
         - package_name: vscodium-insiders
         - package_name: vscodium-insiders
-    if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
+    if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
 
 
     steps:
     steps:
       - name: Get version
       - name: Get version
         env:
         env:
-          RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
+          RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }}
         run: echo "PACKAGE_VERSION=${RELEASE_VERSION/-*/}" >> "${GITHUB_ENV}"
         run: echo "PACKAGE_VERSION=${RELEASE_VERSION/-*/}" >> "${GITHUB_ENV}"
 
 
       - name: Publish ${{ matrix.package_name }}
       - name: Publish ${{ matrix.package_name }}
@@ -248,7 +246,6 @@ jobs:
 
 
   snap:
   snap:
     needs:
     needs:
-      - check
       - build
       - build
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     env:
     env:
@@ -259,7 +256,7 @@ jobs:
         platform:
         platform:
         - amd64
         - amd64
         - arm64
         - arm64
-    # if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
+    # if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
     if: false
     if: false
 
 
     steps:
     steps: