Skip to content

Commit

Permalink
ci: Parameterise Github workflow_dispatch
Browse files Browse the repository at this point in the history
Update the Github `deploy` workflow to parameterise the reference
to deploy (branch, revision, etc.).
  • Loading branch information
al committed Aug 3, 2024
1 parent 491c9b7 commit 4925926
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 4925926

Please sign in to comment.