Skip to content

Commit

Permalink
chore: workflow call release create (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook authored Sep 22, 2023
1 parent cabf16c commit 3f9a7a0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Release Create

on:
workflow_call:
inputs:
version:
description: "The version of release"
type: string
required: true
default: ''
push:
tags:
- v*
Expand All @@ -18,8 +25,11 @@ jobs:

- name: Get repository name
run: |
tag_name="${{ inputs.version }}"
if [[ -z "$tag_name" ]]; then
tag_name=${GITHUB_REF#refs/tags/}
fi
repo_name=${GITHUB_REPOSITORY#*/}
tag_name=${GITHUB_REF#refs/tags/}
echo 'REPO_NAME='${repo_name} >> $GITHUB_ENV
echo 'TAG_NAME='${tag_name} >> $GITHUB_ENV
Expand Down

0 comments on commit 3f9a7a0

Please sign in to comment.