Skip to content

Commit

Permalink
GHA: Compile: Adds checkout_branch input
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Aug 20, 2024
1 parent 187a490 commit 86ff301
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: Compile
# Setting an environment variable with the value of a configuration variable.
env:
ARTIFACT_PREFIX: ${{ inputs.artifact_prefix || 'mt' }}
# yamllint disable-line rule:line-length
CHECKOUT_BRANCH: ${{ inputs.checkout_branch || github.head_ref || github.ref_name }}
INDI_COMMON_WORKDIR: ${{ vars.INDI_COMMON_WORKDIR || 'indicators-common' }}
REPOSITORY: EA31337/EA31337-indicators-common
SKIP_CLEANUP: ${{ inputs.skip_cleanup || false }}
Expand Down Expand Up @@ -31,6 +33,11 @@ on:
description: Artifact prefix.
required: false
type: string
checkout_branch:
default: ${{ github.head_ref || github.ref_name }}
description: Checkout branch
required: false
type: string
skip_cleanup:
default: false
description: Whether to skip a clean-up job.
Expand Down Expand Up @@ -105,7 +112,7 @@ jobs:
defaults:
run:
shell: powershell
name: Compile indicators
name: Compile Indicators
needs: [compile-platform-indicators]
runs-on: windows-latest
strategy:
Expand All @@ -115,7 +122,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: ${{ env.INDI_COMMON_WORKDIR }}
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ env.CHECKOUT_BRANCH }}
repository: EA31337/EA31337-indicators-common
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 86ff301

Please sign in to comment.