Browse Source

Merge pull request #12 from wang0618/workflow-fix

Workflow fix
WangWeimin 4 years ago
parent
commit
279f0cbae3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/workflows/test.yml

+ 4 - 4
.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
+        uses: percy/exec-action@v0.3.1
         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)