Skip to content

Commit 19c4650

Browse files
committed
chore: add optional ref input
1 parent 4489530 commit 19c4650

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,26 @@ name: Deploy Reference Documentation
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch or tag to deploy reference docs from. Defaults to current branch.'
8+
type: string
9+
required: false
10+
default: ${{ github.ref_name }}
511

612
permissions:
713
id-token: write
814

915
jobs:
1016
deploy-reference-docs:
11-
uses: "ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@main"
12-
with:
13-
buildsystem: 'maven'
14-
secrets:
15-
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Get ref name
20+
id: get_branch
21+
run: echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/})"
22+
- uses: "ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@main"
23+
with:
24+
buildsystem: 'maven'
25+
ref: ${{ inputs.ref }}
26+
secrets:
27+
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)