Skip to content

Commit af8ccef

Browse files
committed
chore: backport custom mfd version to v1
1 parent 41cc7bd commit af8ccef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'The version to release'
88
required: false
99
default: ""
10+
mfd-tag:
11+
description: 'The MFD tag to use for API docs'
12+
required: false
13+
default: ""
1014

1115
permissions:
1216
contents: write
@@ -59,7 +63,10 @@ jobs:
5963
env:
6064
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
6165
run: |
62-
MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name')
66+
MFD_TAG='${{ inputs.mfd-tag }}'
67+
if [[ -z "${MFD_TAG}" ]]; then
68+
MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name')
69+
fi
6370
echo "Latest MFD tag: $MFD_TAG"
6471
gh api /repos/cloudbeds/mfd/tarball/$MFD_TAG | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api'
6572

0 commit comments

Comments
 (0)