浏览代码

(experiment) use and try another way of executing scripts

Peter Squicciarini 4 年之前
父节点
当前提交
4c7c82fe06
共有 3 个文件被更改,包括 6 次插入12 次删除
  1. 2 12
      .github/workflows/linux.yml
  2. 1 0
      check_tags.sh
  3. 3 0
      get_repo.sh

+ 2 - 12
.github/workflows/linux.yml

@@ -39,23 +39,13 @@ jobs:
         with:
         with:
           node-version: 12.14.1
           node-version: 12.14.1
 
 
-      - name: Debug
-        run: |
-          ls -al
-          ls /__w
-
       - name: Clone VSCode repo
       - name: Clone VSCode repo
-        run: |
-          . get_repo.sh
-          echo "::set-env name=LATEST_MS_TAG::$LATEST_MS_TAG"
-          echo "::set-env name=LATEST_MS_COMMIT::$LATEST_MS_COMMIT"
+        run: ./get_repo.sh
 
 
       - name: Check existing VSCodium tags/releases
       - name: Check existing VSCodium tags/releases
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        run: |
-          . check_tags.sh
-          echo "::set-env name=SHOULD_BUILD::$SHOULD_BUILD"
+        run: ./check_tags.sh
 
 
       - name: Build
       - name: Build
         env:
         env:

+ 1 - 0
check_tags.sh

@@ -69,3 +69,4 @@ if [ "$GITHUB_TOKEN" != "" ]; then
   fi
   fi
 fi
 fi
 
 
+echo "SHOULD_BUILD=$SHOULD_BUILD" >> $GITHUB_ENV

+ 3 - 0
get_repo.sh

@@ -8,3 +8,6 @@ echo "Got the latest MS tag: ${LATEST_MS_TAG}"
 
 
 git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1
 git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1
 
 
+echo "LATEST_MS_COMMIT=$LATEST_MS_COMMIT" >> $GITHUB_ENV
+echo "LATEST_MS_TAG=$LATEST_MS_TAG" >> $GITHUB_ENV
+