Skip to content

chore: add optional ref input #186

chore: add optional ref input

chore: add optional ref input #186

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:

Check failure on line 18 in .github/workflows/generate-docs-site.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 18
- name: Set Target Ref
shell: python -u {0}
run: |
ref = "${{ inputs.ref }}"
if ref == "":
ref = "${{ 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: ${{ inputs.ref }}
secrets:
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}