Build and Release #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Get Latest Release Tag | |
on: | |
workflow_dispatch: # 手动触发工作流 | |
jobs: | |
get_latest_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 获取最新发布版本标签 | |
run: | | |
RESPONSE=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest") | |
RELEASE_TAG=$(echo "${RESPONSE}" | jq -r .tag_name) | |
echo "最新发布的版本标签: ${RELEASE_TAG}" |