Skip to content

chore: get version workflow (#111) #7

chore: get version workflow (#111)

chore: get version workflow (#111) #7

Workflow file for this run

name: Release Create
on:
push:
tags:
- v*
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
RELEASE_VERSION: ${{ github.ref_name }}
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Get repository name
run: |
repo_name=${GITHUB_REPOSITORY#*/}
tag_name=${GITHUB_REF#refs/tags/}
echo 'REPO_NAME='${repo_name} >> $GITHUB_ENV
echo 'TAG_NAME='${tag_name} >> $GITHUB_ENV
- name: release pre-release
uses: softprops/action-gh-release@v1
with:
token: ${{ env.GITHUB_TOKEN }}
name: ${{ env.REPO_NAME }} ${{ env.TAG_NAME }}
tag_name: ${{ env.TAG_NAME }}
generate_release_notes: true
prerelease: true
send-message:
needs: [ create-release ]
if: ${{ failure() || cancelled() }}
uses: ./.github/workflows/feishui-message.yml
with:
TYPE: "2"
CONTENT: "create release ${{ needs.get-version.outputs.release-version }} error"
secrets: inherit