Bladeren bron

🐛 bugfix: fix action if error

chenshuai2144 5 jaren geleden
bovenliggende
commit
2bee817280
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 1 0
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/deploy.yml

+ 1 - 0
.github/workflows/ci.yml

@@ -15,6 +15,7 @@ jobs:
         uses: actions/setup-node@v1
         with:
           node-version: ${{ matrix.node_version }}
+      - run: echo ${{github.ref}}
       - run: yarn
       - run: yarn run lint
       - run: yarn run tsc

+ 1 - 1
.github/workflows/deploy.yml

@@ -5,7 +5,7 @@ on: [push]
 jobs:
   build-and-deploy:
     runs-on: ubuntu-latest
-    if: github.ref == 'master'
+    if: github.ref == 'refs/heads/master'
     steps:
       - name: Checkout
         uses: actions/checkout@master