Skip to content

Commit

Permalink
Merge pull request #26 from al/ci/parameterise-workflow-dispatch
Browse files Browse the repository at this point in the history
ci: Parameterise Github `workflow_dispatch`
  • Loading branch information
al authored Aug 3, 2024
2 parents 491c9b7 + 4925926 commit 2d4bac1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on:
push:
branches:
- main
workflow_dispatch: {}
workflow_dispatch:
inputs:
ref:
default: main
description: 'Branch, tag or commit SHA1 to build'
required: true
type: string

jobs:
build-and-deploy:
Expand All @@ -16,6 +22,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Setup pnpm
uses: pnpm/[email protected]
Expand Down

0 comments on commit 2d4bac1

Please sign in to comment.