Skip to content

Commit

Permalink
Merge pull request #46 from derskythe/feat/ci-changelog
Browse files Browse the repository at this point in the history
Feat/ci changelog
  • Loading branch information
derskythe authored Nov 4, 2023
2 parents c7bc793 + d33f77d commit ca0e5b6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Changelog
run-name: "Changelog for ${{ github.ref }} by @${{ github.ACTOR }}"
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
# tags:
# - "v*.*.*"
# release:
# types:
# - created

permissions:
contents: write
packages: write

jobs:
release:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

- name: "✏️ Generate release changelog"
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.FLIPPER_TOKEN }}
user: ${{ github.repository_owner }}
repo: ${{ github.repository }}
output: CHANGELOG.md
unreleased: false
stripGeneratorNotice: true

- name: "Show CHANGELOG.md"
run: cat CHANGELOG.md

- name: "Commit changes"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "docs: update `CHANGELOG.md`"
file_pattern: "*.md"
branch: ${{ github.ref_name }}
commit_options: '--no-verify --signoff'
# skip_dirty_check: true
# skip_checkout: true
# skip_fetch: true

0 comments on commit ca0e5b6

Please sign in to comment.