Skip to content

Commit

Permalink
update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Sep 12, 2023
1 parent 514793a commit 3a0f672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- name: Comment on PR
uses: hasura/[email protected]
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
if: ${{github.event.number}} && ${{ github.event.pull_request.head.repo.full_name != github.repository }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Deploy to PR preview
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
if: ${{github.event.number}} && ${{ github.event.pull_request.head.repo.full_name != github.repository }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
Expand All @@ -79,7 +79,7 @@ jobs:

- name: Update comment
uses: hasura/[email protected]
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
if: ${{github.event.number}} && ${{ github.event.pull_request.head.repo.full_name != github.repository }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
Expand Down

0 comments on commit 3a0f672

Please sign in to comment.