Skip to content

Commit ac8d17a

Browse files
committed
chore: add optional ref input
1 parent f932494 commit ac8d17a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/generate-docs-site.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ jobs:
1919
- name: Set Target Ref
2020
shell: python -u {0}
2121
run: |
22-
ref = "${{ inputs.ref }}"
23-
if ref == "":
24-
ref = "${{ github.ref }}"
25-
22+
ref = "${{ inputs.ref }}" if "${{ inputs.ref }}" != "" else "${{ github.ref }}"
2623
with open("$GITHUB_ENV", "a") as env_file:
2724
print(f"TARGET_REF={ref}", file=env_file)
25+
2826
- uses: "ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@OmarAlJarrah/reusable-generate-reference-docs-gh-action"
2927
with:
3028
buildsystem: 'maven'

0 commit comments

Comments
 (0)