From ec0f177465bd0aa93032d30a9945a78851f6b2c1 Mon Sep 17 00:00:00 2001 From: kenorb Date: Sun, 11 Feb 2024 20:51:06 +0000 Subject: [PATCH] GHA: Adds inputs.ref --- .github/workflows/platform.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index f53a93f..05d4139 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -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 }} @@ -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 @@ -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: