Skip to content

Commit

Permalink
GHA: Adds inputs.ref
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 11, 2024
1 parent cb17d2d commit ec0f177
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Platform

env:
ARTIFACT_NAME: ${{ inputs.artifact || 'platform' }}
CHECKOUT_REF: ${{ inputs.ref }}
REPOSITORY: EA31337/ansible-role-metatrader
VERSION: ${{ inputs.version || 5 }}
WORKDIR: ${{ inputs.workdir || github.workspace }}

Expand All @@ -24,6 +26,11 @@ on:
description: Artifact name
required: false
type: string
ref:
default: dev
description: The branch, tag or SHA to checkout.
required: false
type: string
version:
default: 5
description: Version to install
Expand All @@ -46,6 +53,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.REPOSITORY }}
ref: ${{ env.CHECKOUT_REF }}
repository: ${{ env.REPOSITORY }}
- name: Runs playbook
uses: dawidd6/action-ansible-playbook@v2
with:
Expand Down

0 comments on commit ec0f177

Please sign in to comment.