feat(workflows): improve changelog generation and workflows

feat: Ignore Changelog.md file so that it will not trigger a build
feat: add Changelog.md to gitignore
chore: improve changelog gh action
This commit is contained in:
peaklabs-dev
2025-01-22 21:28:13 +01:00
parent 1d4f05714b
commit c4735f2466
4 changed files with 7 additions and 6 deletions

View File

@@ -3,8 +3,6 @@ name: Changelog
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
@@ -14,6 +12,8 @@ jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -22,7 +22,6 @@ jobs:
- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff.toml
args: --verbose
@@ -30,11 +29,10 @@ jobs:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit changes
- name: Commit
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout -b git-cliff
git add CHANGELOG.md
git commit -m "docs: update changelog"
git push -f https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git git-cliff
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git main

View File

@@ -12,6 +12,7 @@ on:
- docker/coolify-realtime/Dockerfile
- docker/testing-host/Dockerfile
- templates/**
- CHANGELOG.md
env:
GITHUB_REGISTRY: ghcr.io

View File

@@ -12,6 +12,7 @@ on:
- docker/coolify-realtime/Dockerfile
- docker/testing-host/Dockerfile
- templates/**
- CHANGELOG.md
env:
GITHUB_REGISTRY: ghcr.io

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ scripts/load-test/*
.env.dusk.local
docker/coolify-realtime/node_modules
.DS_Store
Changelog.md