ci: fix cond

This commit is contained in:
Marc 2021-07-17 12:46:15 -04:00
parent 1ee321a4a6
commit a16fe8a6a7

View file

@ -61,7 +61,7 @@ jobs:
preview:
runs-on: ubuntu-latest
name: Deploy preview
if: ${{ github.ref != 'refs/head/main' }}
if: ${{ github.ref != 'refs/heads/main' }}
needs: build
steps:
- uses: actions/checkout@v2
@ -101,7 +101,7 @@ jobs:
runs-on: ubuntu-latest
name: Deploy
needs: build
if: ${{ github.ref == 'refs/head/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2