Skip to content

chore: add optional ref input #183

chore: add optional ref input

chore: add optional ref input #183

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: ${{ github.ref_name }}
permissions:
id-token: write
jobs:
deploy-reference-docs:
runs-on: ubuntu-latest
steps:
- name: Get ref name
id: get_branch
run: echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/})"
- uses: "ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@main"
with:
buildsystem: 'maven'
ref: ${{ inputs.ref }}
secrets:
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}