36 lines
1 KiB
YAML
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
|