From 65ff8e06fdab60810ac8d57c05834031956ce19f Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 7 Jul 2023 14:39:10 -0400 Subject: [PATCH] Add git ref parameter to re-usable workflow --- .github/workflows/eclipse-distro-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/eclipse-distro-build.yml b/.github/workflows/eclipse-distro-build.yml index 5f81395fa..543ba49c8 100644 --- a/.github/workflows/eclipse-distro-build.yml +++ b/.github/workflows/eclipse-distro-build.yml @@ -13,6 +13,11 @@ on: required: true default: 'snapshot' type: string + ref: + description: Git branch, tag, commit hash + required: false + default: 'main' + type: string jobs: @@ -20,6 +25,7 @@ jobs: runs-on: [self-hosted, macOS] steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 + ref: ${{ inputs.ref }} - name: Set up JDK 17 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 with: