Skip to content

Commit

Permalink
GHA: Adds install_by_default workflow input
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 17, 2024
1 parent de701cc commit eaf2948
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Compile

env:
ARTIFACT_PREFIX: ${{ inputs.artifact_prefix || 'mt' }}
INSTALL_BY_DEFAULT: ${{ inputs.ignore_install || true }}

# yamllint disable-line rule:truthy
on:
Expand All @@ -26,19 +27,26 @@ on:
description: Artifact name
required: false
type: string
install_by_default:
default: true
description: Install platform by default
required: false
type: boolean

env:

Check failure on line 36 in .github/workflows/compile.yml

View workflow job for this annotation

GitHub Actions / Pre-commit

36:1 [key-duplicates] duplication of key "env" in mapping
# Setting an environment variable with the value of a configuration variable.
INDI_OTHER_WORKDIR: ${{ vars.INDI_OTHER_WORKDIR || 'indicators-other' }}

jobs:
mt4:
if: env.INSTALL_BY_DEFAULT
name: Installs platform (4)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
artifact: ${{ env.ARTIFACT_PREFIX }}4
version: 4
mt5:
if: env.INSTALL_BY_DEFAULT
name: Installs platform (5)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
Expand Down

0 comments on commit eaf2948

Please sign in to comment.