File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Post release after develop synced
22
33on :
4- repository_dispatch :
5- types : [develop-synced]
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Release version, e.g. 1.2.3'
8+ required : true
9+ type : string
610
711jobs :
812 post_release :
@@ -12,19 +16,19 @@ jobs:
1216 contents : write
1317
1418 steps :
15- - name : Read version from repository_dispatch payload
19+ - name : Read version from workflow_dispatch input
1620 id : meta
1721 env :
18- PAYLOAD_VERSION : ${{ github.event.client_payload .version }}
22+ INPUT_VERSION : ${{ github.event.inputs .version }}
1923 run : |
2024 set -euo pipefail
21- if [ -z "${PAYLOAD_VERSION }" ]; then
22- echo "No version in client_payload , skip post-release."
25+ if [ -z "${INPUT_VERSION }" ]; then
26+ echo "No version in workflow_dispatch input , skip post-release."
2327 echo "skip=true" >> "$GITHUB_OUTPUT"
2428 exit 0
2529 fi
26- echo "Using version from payload : ${PAYLOAD_VERSION }"
27- echo "version=${PAYLOAD_VERSION }" >> "$GITHUB_OUTPUT"
30+ echo "Using version from input : ${INPUT_VERSION }"
31+ echo "version=${INPUT_VERSION }" >> "$GITHUB_OUTPUT"
2832 echo "skip=false" >> "$GITHUB_OUTPUT"
2933
3034 - name : Checkout main
You can’t perform that action at this time.
0 commit comments