diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index c64de57548..a51fd1bcaf 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -1,8 +1,12 @@ name: Post release after develop synced on: - repository_dispatch: - types: [develop-synced] + workflow_dispatch: + inputs: + version: + description: 'Release version, e.g. 1.2.3' + required: true + type: string jobs: post_release: @@ -12,19 +16,19 @@ jobs: contents: write steps: - - name: Read version from repository_dispatch payload + - name: Read version from workflow_dispatch input id: meta env: - PAYLOAD_VERSION: ${{ github.event.client_payload.version }} + INPUT_VERSION: ${{ github.event.inputs.version }} run: | set -euo pipefail - if [ -z "${PAYLOAD_VERSION}" ]; then - echo "No version in client_payload, skip post-release." + if [ -z "${INPUT_VERSION}" ]; then + echo "No version in workflow_dispatch input, skip post-release." echo "skip=true" >> "$GITHUB_OUTPUT" exit 0 fi - echo "Using version from payload: ${PAYLOAD_VERSION}" - echo "version=${PAYLOAD_VERSION}" >> "$GITHUB_OUTPUT" + echo "Using version from input: ${INPUT_VERSION}" + echo "version=${INPUT_VERSION}" >> "$GITHUB_OUTPUT" echo "skip=false" >> "$GITHUB_OUTPUT" - name: Checkout main