Update .gitea/workflows/build.yaml
Some checks failed
Release Version / build (push) Failing after 49s
Some checks failed
Release Version / build (push) Failing after 49s
This commit is contained in:
parent
0eb50f49d4
commit
b0b940c16a
|
@ -35,7 +35,6 @@ jobs:
|
||||||
latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0")
|
latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0")
|
||||||
new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}')
|
new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}')
|
||||||
|
|
||||||
# Sprawdzenie, czy nowy tag już istnieje
|
|
||||||
if git rev-parse "$new_version" >/dev/null 2>&1; then
|
if git rev-parse "$new_version" >/dev/null 2>&1; then
|
||||||
echo "Tag $new_version already exists. Exiting."
|
echo "Tag $new_version already exists. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -46,6 +45,9 @@ jobs:
|
||||||
git tag $new_version
|
git tag $new_version
|
||||||
git push origin $new_version
|
git push origin $new_version
|
||||||
|
|
||||||
|
- name: Verify Tag
|
||||||
|
run: git tag -l
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user