Skip to content

Commit

Permalink
Add workflow_dispatch input
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Oct 14, 2024
1 parent 7c16821 commit 23f7d8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pelican.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ on:
push:
branches: ["main"]
workflow_dispatch:
inputs:
deploy:
required: false
default: true
description: "Whether to deploy the site. If true then build the site and deploy it. If false then just test that the site build's successfully but don't deploy anything."
type: boolean
workflow_call:
jobs:
Debug:
runs-on: ubuntu-latest
steps:
- run: echo "${{ inputs.deploy }}"
Deploy:
uses: seanh/pelican/.github/workflows/github_pages.yml@pelican_decouple_build_workflow-single-file
permissions:
Expand Down

0 comments on commit 23f7d8c

Please sign in to comment.