action-pr-comment/.forgejo/workflows/Update Version.yml
GregoryDosh 877f1395e5
Some checks failed
Create Release / Create Release (push) Has been cancelled
Update Version / Update Version (push) Successful in 6s
Initial Dosh LLC Config 🌈🐻
2025-11-24 12:03:04 -06:00

36 lines
1 KiB
YAML

# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2025 Dosh LLC
---
name: Update Version
on:
push:
branches:
- main
paths-ignore:
- .version
jobs:
update-version:
name: Update Version
runs-on: ubuntu-act-latest
if: ${{ secrets.REPO_PUBLISH_TOKEN != '' }}
steps:
- name: Clone Repo into Workspace
uses: https://git.auengun.net/actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
token: ${{ secrets.REPO_PUBLISH_TOKEN }}
persist-credentials: true
fetch-depth: 0
fetch-tags: true
- name: Bump Version
shell: bash
env:
USER_EMAIL: ${{ github.event.head_commit.author.email }}
USER_NAME: ${{ github.event.head_commit.author.name }}
run: |
git config --global user.email "${USER_EMAIL}"
git config --global user.name "${USER_NAME}"
commit-and-tag-version --skip.changelog --skip.log --skip.tag
git push --follow-tags origin main