testing action v3 #release
This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
||||
CreateRelease:
|
||||
name: Create release
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !contains(gitea.event.head_commit.message, '#skipGA') && contains(gitea.event.head_commit.message, '#release') }}
|
||||
# if: ${{ !contains(gitea.event.head_commit.message, '#skipGA') && contains(gitea.event.head_commit.message, '#release') }}
|
||||
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
@@ -17,19 +17,31 @@ jobs:
|
||||
id: trunkver
|
||||
uses: https://github.com/crftd-tech/trunkver@main
|
||||
|
||||
- name: Get tag
|
||||
uses: https://github.com/olegtarasov/get-tag@v2.1.4
|
||||
id: tagName
|
||||
- name: Use tag
|
||||
run: echo ${{ steps.tagName.outputs.tag }}
|
||||
- name: Get current date
|
||||
id: get-date
|
||||
run: |
|
||||
$NOW=& Get-Date -format yyyy-MM-dd
|
||||
echo "NOW=$NOW" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: https://github.com/comnoco/create-release-action@v2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.trunkver.outputs.trunkver }}
|
||||
release_name: Release ${{ steps.trunkver.outputs.trunkver }}
|
||||
body: |
|
||||
${{ gitea.event.head_commit.message}}
|
||||
- name: Use date
|
||||
run: echo ${{ env.NOW }}
|
||||
|
||||
- name: Get current tag_name
|
||||
id: get-tag
|
||||
run: |
|
||||
$TAG=& git describe --tags --abbrev=0
|
||||
echo "TAG=$TAG" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Use tag
|
||||
run: echo ${{ env.TAG }}
|
||||
|
||||
# - name: Create release
|
||||
# id: create_release
|
||||
# uses: https://github.com/comnoco/create-release-action@v2
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# tag_name: ${{ steps.trunkver.outputs.trunkver }}
|
||||
# release_name: Release ${{ steps.trunkver.outputs.trunkver }}
|
||||
# body: |
|
||||
# ${{ gitea.event.head_commit.message}}
|
||||
|
||||
Reference in New Issue
Block a user