We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41cc7bd commit af8ccefCopy full SHA for af8ccef
.github/workflows/publish.yaml
@@ -7,6 +7,10 @@ on:
7
description: 'The version to release'
8
required: false
9
default: ""
10
+ mfd-tag:
11
+ description: 'The MFD tag to use for API docs'
12
+ required: false
13
+ default: ""
14
15
permissions:
16
contents: write
@@ -59,7 +63,10 @@ jobs:
59
63
env:
60
64
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
61
65
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
70
echo "Latest MFD tag: $MFD_TAG"
71
gh api /repos/cloudbeds/mfd/tarball/$MFD_TAG | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api'
72
0 commit comments