Skip to content

Commit

Permalink
made ref overridable for external repos
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jan 16, 2025
1 parent 1687d24 commit 9f4d527
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/stackhpc-all-in-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@ on:
description: Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing
type: string
default: main
called_from_external:
description: Set if using the workflow from an external repository
type: boolean
default: false
repository:
description: SKC repository to checkout (convenience for CI)
type: string
default: ${{ github.repository }}
external_ref_override:
description: Git ref to checkout, only used if called_from_external is true
type: string
default: ${{ github.ref }}
secrets:
KAYOBE_VAULT_PASSWORD:
required: true
Expand Down Expand Up @@ -103,7 +111,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || github.ref }}
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.called_from_external && inputs.external_ref_override || github.ref }}
submodules: true

- name: Output Kayobe image
Expand Down

0 comments on commit 9f4d527

Please sign in to comment.