Skip to content

Commit

Permalink
Add if
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Sep 2, 2023
1 parent 80fac22 commit 972393e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ jobs:
cancel-in-progress: true

runs-on: ubuntu-latest
if: github.repository == "cohstats/coh3-stats"
steps:
- name: Check if it's a fork
run: |
if [ "${{ github.event.repository.full_name }}" != "cohstats/coh3-stats" ]; then
echo "This is a fork. Skipping the workflow as you don't have access to secrets."
exit 78 # This exits the workflow with a neutral status
fi
- name: Checkout Repo
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 972393e

Please sign in to comment.