51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
# Ansible Roles for managing Auengun.net Infrastructure & Testing/Learning.
|
|
# Source available at git.auengun.net/homelab/ansible-collection
|
|
# Copyright (C) 2023 GregoryDosh
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2023 GregoryDosh
|
|
---
|
|
name: Update Version
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- galaxy.yml
|
|
|
|
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
persist-credentials: true
|
|
token: ${{ secrets.REPO_PUBLISH_TOKEN }}
|
|
|
|
- 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 --bumpFiles galaxy.yml --packageFiles galaxy.yml --skip.changelog --skip.log --skip.tag
|
|
git push --follow-tags origin main
|