Skip to content

Commit

Permalink
Merge pull request #515 from vaitkus/skip-build-html-job-on-forks
Browse files Browse the repository at this point in the history
Skip the 'build_html' job on repository forks
  • Loading branch information
rartino authored Apr 9, 2024
2 parents 6d62dce + 18317ea commit 604468a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- name: Commit to gh-pages
run: |
# Skip the run on forks without the 'gh-pages' branch
git ls-remote --exit-code --heads origin refs/heads/gh-pages > /dev/null
test $? -eq 2 && exit 0
git fetch origin gh-pages
git checkout gh-pages
mkdir -p specification/develop
Expand Down

0 comments on commit 604468a

Please sign in to comment.