Skip to content

Commit

Permalink
chore: add optional ref input
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAlJarrah committed Jan 23, 2025
1 parent f932494 commit ac8d17a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ac8d17a

Please sign in to comment.