Skip to content

Commit

Permalink
$default-branch is only available in templates not in actual workflow…
Browse files Browse the repository at this point in the history
… instances.

Only deploy if not a PR.
  • Loading branch information
StefanFabian committed Aug 12, 2024
1 parent e6ae06b commit d5457f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Documentation
on:
push:
branches: [ $default-branch ]
branches: [ jazzy ]
pull_request:
branches: [ $default-branch ]
branches: [ jazzy ]

jobs:
build:
Expand Down Expand Up @@ -44,5 +44,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d5457f9

Please sign in to comment.