Skip to content

Merge branch 'main' of github.com:openpatch/classi #8

Merge branch 'main' of github.com:openpatch/classi

Merge branch 'main' of github.com:openpatch/classi #8

Workflow file for this run

name: Changelog
on:
push:
branches:
- main
permissions:
contents: write
jobs:
update-fastlane-changelog:
name: Update fastlane changelog
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: true
- name: Read next version code
id: version
run: echo "code=$(cat version_code.txt)" >> $GITHUB_OUTPUT
- name: Generate unreleased changelog
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --unreleased --strip all --output fastlane/metadata/android/en-US/changelogs/${{ steps.version.outputs.code }}.txt
- name: Strip markdown formatting for fastlane
run: |
sed -i \
-e '/^## \[Unreleased\]/{N;d}' \
-e 's/^### //' \
-e 's/\*([^)]*)\* //g' \
-e 's/\[\*\*breaking\*\*\] /[breaking] /g' \
fastlane/metadata/android/en-US/changelogs/${{ steps.version.outputs.code }}.txt
- name: Commit fastlane changelog
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: update fastlane changelog"
file_pattern: fastlane/metadata/android/en-US/changelogs/${{ steps.version.outputs.code }}.txt