mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 21:38:58 +00:00
chore: set release tag by commit count
This commit is contained in:
parent
97ad3e7ff9
commit
79426d578e
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -296,6 +296,10 @@ jobs:
|
|||||||
pattern: sd-*
|
pattern: sd-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Get commit count
|
||||||
|
id: commit_count
|
||||||
|
run: echo "count=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get commit hash
|
- name: Get commit hash
|
||||||
id: commit
|
id: commit
|
||||||
uses: pr-mpt/actions-commit-hash@v2
|
uses: pr-mpt/actions-commit-hash@v2
|
||||||
@ -306,7 +310,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}
|
tag_name: >
|
||||||
|
${{ github.ref_name == 'master' &&
|
||||||
|
format('release_{0}_{1}', steps.commit_count.outputs.count, steps.commit.outputs.short) ||
|
||||||
|
format('{0}-{1}', env.BRANCH_NAME, steps.commit.outputs.short) }}
|
||||||
|
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
id: upload_release
|
id: upload_release
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user