Skip to content

chore: add optional ref input #188

chore: add optional ref input

chore: add optional ref input #188

name: Deploy Reference Documentation
on:
workflow_dispatch:
inputs:
ref:
description: 'Branch or tag to deploy reference docs from. Defaults to current branch.'
type: string
required: false
default: ''
permissions:
id-token: write
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 }}