Update stable tag automatically

To make it easier to release.
I will point users to `main` instead.
This commit is contained in:
Edward Firmo
2025-08-02 22:58:11 +02:00
parent f79ed28364
commit 6fad9d7074
2 changed files with 11 additions and 10 deletions

View File

@@ -19,12 +19,12 @@ on: # yamllint disable-line rule:truthy
update_stable:
description: "Update stable tag?"
required: true
default: false
default: true
type: boolean
update_latest:
description: "Update latest tag?"
required: true
default: false
default: true
type: boolean
jobs:
@@ -55,9 +55,10 @@ jobs:
- name: Update stable tag
if: |
success() &&
github.event_name == 'workflow_dispatch' &&
inputs.update_stable
success() && (
github.event_name == 'workflow_dispatch' && inputs.update_stable ||
github.event_name == 'push'
)
run: |
# Verify version bump was successful
if [ ! -f "./versioning/VERSION" ]; then
@@ -74,7 +75,7 @@ jobs:
# Update tag
NEW_VERSION=$(cat ./versioning/VERSION)
echo "Updating stable tag to $NEW_VERSION"
git tag -fa stable -m "Update stable tag"
git tag -fa stable -m "Update stable tag to $NEW_VERSION"
git push origin stable --force
- name: Update latest tag
@@ -99,6 +100,6 @@ jobs:
# Update tag
NEW_VERSION=$(cat ./versioning/VERSION)
echo "Updating latest tag to $NEW_VERSION"
git tag -fa latest -m "Update latest tag"
git tag -fa latest -m "Update latest tag to $NEW_VERSION"
git push origin latest --force
...