Skip to content

Commit

Permalink
Merge pull request #95 from ivoa/iss49-disable-preview-site-from-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick authored Oct 30, 2024
2 parents 311cb1a + 09ce00a commit 9f38ee1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Skip workflow for PRs from forks
shell: bash
run: |
if [ "${{ github.event.pull_request.head.repo.fork }}" = "true" ]; then
echo "This workflow is not supported for PRs from forks."
exit 0
fi
- name: Extract branch name
shell: bash
run: echo "BRANCH_NAME=$(echo ${{ github.head_ref }} | sed 's/\//-/g')" >> $GITHUB_ENV
Expand Down

0 comments on commit 9f38ee1

Please sign in to comment.