Skip to content

Commit

Permalink
Update on-tag-do-release.yml
Browse files Browse the repository at this point in the history
test2
  • Loading branch information
ikpil authored Sep 9, 2023
1 parent 8397cfc commit 0b559e6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/on-tag-do-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ on:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
jobs:
release:
test:
runs-on: ubuntu-latest
steps:
- name: Run
run: |
dotnet tool install --global GitReleaseManager.Tool
tag="${GITHUB_REF:10}"
owner="${GITHUB_REPOSITORY%/*}"
repo="${GITHUB_REPOSITORY#*/}"
dotnet-gitreleasemanager create -m ${tag} --token ${{secrets.GITHUB_TOKEN}} -o ${owner} -r ${repo}
dotnet-gitreleasemanager close -m ${tag} --token ${{secrets.GITHUB_TOKEN}} -o ${owner} -r ${repo}
dotnet-gitreleasemanager publish -t ${tag} --token ${{secrets.GITHUB_TOKEN}} -o ${owner} -r ${repo}
shell: bash
- uses: actions/checkout@v2
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}

0 comments on commit 0b559e6

Please sign in to comment.