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 191d605 commit 2b9f1b4
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,9 @@ permissions:
jobs:
deploy-reference-docs:
runs-on: ubuntu-latest
steps:
- name: Set Target Ref
shell: python -u {0}
run: |
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'
ref: ${{ env.TARGET_REF }}
secrets:
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@OmarAlJarrah/reusable-generate-reference-docs-gh-action
with:
buildsystem: 'maven'
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
secrets:
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

0 comments on commit 2b9f1b4

Please sign in to comment.