Explorar o código

fix: `set-env` command is disabled

WangWeimin %!s(int64=4) %!d(string=hai) anos
pai
achega
95ad1e5a44
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      .github/workflows/test.yml

+ 3 - 3
.github/workflows/test.yml

@@ -28,13 +28,13 @@ jobs:
         run: |
           python -m pip install --upgrade pip
           pip install -r requirements.txt
+      - name: Install env
+        run: echo "PERCY_TOKEN=${{ secrets.PERCY_TOKEN }}" >> $GITHUB_ENV
       - name: Percy Test
         uses: percy/exec-action@v0.2.0
         with:
           working-directory: ./test
           command: "./run_all.sh"
-        env:
-          PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
       - name: Upload test output
         uses: actions/upload-artifact@v1
         if: failure()
@@ -43,4 +43,4 @@ jobs:
           path: test/output
       - name: Upload Codecov Report
         working-directory: ./test
-        run: bash <(curl -s https://codecov.io/bash)
+        run: bash <(curl -s https://codecov.io/bash)