34 lines
1,001 B
YAML
34 lines
1,001 B
YAML
# git.auengun.net/GregoryDosh/automidically
|
|
# Copyright (C) 2020 GregoryDosh
|
|
---
|
|
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@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 --skip.changelog --skip.log --skip.tag
|
|
git push --follow-tags origin main
|