From ac8d17a2348996952ba6976e39f8ae1649f24e77 Mon Sep 17 00:00:00 2001 From: OmarAlJarrah Date: Thu, 23 Jan 2025 17:10:15 +0300 Subject: [PATCH] chore: add optional ref input --- .github/workflows/generate-docs-site.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate-docs-site.yml b/.github/workflows/generate-docs-site.yml index 613ec6714f..e8b6244d30 100644 --- a/.github/workflows/generate-docs-site.yml +++ b/.github/workflows/generate-docs-site.yml @@ -19,12 +19,10 @@ jobs: - name: Set Target Ref shell: python -u {0} run: | - ref = "${{ inputs.ref }}" - if ref == "": - ref = "${{ github.ref }}" - + ref = "${{ inputs.ref }}" if "${{ inputs.ref }}" != "" else "${{ github.ref }}" with open("$GITHUB_ENV", "a") as env_file: print(f"TARGET_REF={ref}", file=env_file) + - uses: "ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@OmarAlJarrah/reusable-generate-reference-docs-gh-action" with: buildsystem: 'maven'