Skip to content

Release Version

Release Version #11

name: Release Version
on:
workflow_call:
inputs:
release_version:
description: 'The version of release'
type: string
required: false
default: ''
content:
description: 'the request content'
type: string
required: false
default: ''
workflow_dispatch:
inputs:
release_version:
description: 'The version of release'
required: false
default: ''
content:
description: 'the request content'
required: false
default: ''
env:
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
RELEASE_BOT_WEBHOOK: ${{ secrets.RELEASE_BOT_WEBHOOK }}
jobs:
get-version:
uses: ./.github/workflows/get-version.yml
with:
RELEASE_VERSION: "${{ inputs.release_version }}"
CONTENT: "${{ inputs.content }}"
secrets: inherit
release-message:
if: ${{ needs.get-version.result == 'success' }}
needs: [ get-version ]
uses: ./.github/workflows/feishui-message.yml
with:
TYPE: "1"
VERSION: "${{ needs.get-version.outputs.release-version }}"
secrets: inherit
release-version:
needs: [ get-version, release-message ]
runs-on: ubuntu-latest
steps:
- name: checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4
- name: push tag
uses: mathieudutour/[email protected]
with:
custom_tag: ${{ needs.get-version.outputs.release-version }}
github_token: ${{ env.GH_TOKEN }}
tag_prefix: ""
send-message:
needs: [ get-version, release-version ]
if: ${{ failure() || cancelled() }}
uses: ./.github/workflows/feishui-message.yml
with:
TYPE: "2"
CONTENT: "release ${{ needs.get-version.outputs.release-version }} error"
secrets: inherit