Skip to content

chore: upgrade slog deps versions (#11) #16

chore: upgrade slog deps versions (#11)

chore: upgrade slog deps versions (#11) #16

Workflow file for this run

name: Tag modules
on:
push:
branches:
- main
permissions:
contents: write
env:
GIT_USER_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_USER_NAME: ${{ secrets.GIT_NAME }}
jobs:
tag_adapter:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
name: Tag modules
runs-on: ubuntu-latest
strategy:
matrix:
module:
- fields
- levels
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.ACCESS_TOKEN }}"
ref: "main"
- name: Files modified
id: check
uses: tj-actions/[email protected]
with:
files: |
./${{ matrix.module }}/**
- name: Config Git User
if: steps.check.outputs.any_changed == 'true'
run: |
git config --local user.email "$GIT_USER_EMAIL"
git config --local user.name "$GIT_USER_NAME"
git config --local pull.ff only
- name: Setup Python
if: steps.check.outputs.any_changed == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install commitizen
if: steps.check.outputs.any_changed == 'true'
run: pip install -U commitizen
- name: Pull changes
if: steps.check.outputs.any_changed == 'true'
run: git fetch origin --tags
- id: cz
name: Create bump and changelog
if: steps.check.outputs.any_changed == 'true'
working-directory: ${{ matrix.module }}
run: |
python -m pip install -U commitizen
cz bump --changelog --yes
export REV=`cz version --project`
echo "version=$REV" >> $GITHUB_OUTPUT
- name: Push changes
if: steps.check.outputs.any_changed == 'true'
uses: Woile/github-push-action@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
tags: "true"
branch: "main"
- name: Print Version
if: steps.check.outputs.any_changed == 'true'
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"