Fix container build workflows to checkout dispatch ref
When manually dispatching a container build with --ref, the build job now checks out the specified commit instead of the branch HEAD. This allows building containers from feature branches before merging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c70aff256a
commit
7641018c6a
4 changed files with 6 additions and 1 deletions
|
|
@ -53,6 +53,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.sha }}
|
||||
|
||||
- name: Check for default.nix
|
||||
id: check
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.sha }}
|
||||
|
||||
- name: Check for Dockerfile
|
||||
id: check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue