ansible-caddy/.forgejo/workflows/Update Version.yml

34 lines
1.1 KiB
YAML

# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2025 Dosh LLC
---
name: Version Bump Galaxy.yml
on:
push:
branches:
- main
paths-ignore:
- galaxy.yml
jobs:
update-galaxy-dot-yml:
name: Version Bump Galaxy.yml
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:
persist-credentials: true
token: ${{ secrets.REPO_PUBLISH_TOKEN }}
- name: Bump Version & Push
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 --bumpFiles galaxy.yml --packageFiles galaxy.yml --skip.changelog --skip.log --skip.tag
git push --follow-tags origin main