mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 17:43:56 +00:00
added release workflow
This commit is contained in:
11
.github/workflows/release_drafter.yaml
vendored
11
.github/workflows/release_drafter.yaml
vendored
@@ -102,16 +102,17 @@ jobs:
|
|||||||
run: hemtt release
|
run: hemtt release
|
||||||
- name: Get previous tag
|
- name: Get previous tag
|
||||||
id: prev_tag
|
id: prev_tag
|
||||||
run: echo "PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^)" >> $GITHUB_ENV
|
run: |
|
||||||
|
tag=$(git describe --tags --abbrev=0 HEAD^ || echo "")
|
||||||
|
echo "tag=${tag}" >> $GITHUB_ENV
|
||||||
|
continue-on-error: true
|
||||||
- name: Get commit messages
|
- name: Get commit messages
|
||||||
id: commits
|
id: commits
|
||||||
run: |
|
run: |
|
||||||
echo "COMMIT_MESSAGES=$(git log ${{ env.PREVIOUS_TAG }}..HEAD --pretty=format:'%h - %s' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
|
echo "COMMIT_MESSAGES=$(git log ${{ env.PREVIOUS_TAG }}..HEAD --pretty=format:'%h - %s' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
|
||||||
- name: Checkout Repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
lfs: true
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
||||||
|
|||||||
Reference in New Issue
Block a user