Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AZMCode authored Aug 5, 2020
1 parent 8d843e9 commit 6cd9c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [push, pull_request]
jobs:
Test:
if: github.ref != 'gh-pages' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
if: github.ref != 'refs/heads/gh-pages' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
run: cd $GITHUB_WORKSPACE && yarn run clean:all && yarn run build:all

Publish-Docs-And-Package:
if: github.ref == 'master' && github.event_name == 'push'
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
needs: Test
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6cd9c16

Please sign in to comment.