Skip to content

Commit

Permalink
feat(workflows): improve changelog generation and workflows
Browse files Browse the repository at this point in the history
feat: Ignore Changelog.md file so that it will not trigger a build
feat: add Changelog.md to gitignore
chore: improve changelog gh action
  • Loading branch information
peaklabs-dev committed Jan 22, 2025
1 parent 1d4f057 commit c4735f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Changelog
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

permissions:
Expand All @@ -14,6 +12,8 @@ jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,19 +22,17 @@ jobs:

- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff.toml
args: --verbose
env:
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
1 change: 1 addition & 0 deletions .github/workflows/coolify-production-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- docker/coolify-realtime/Dockerfile
- docker/testing-host/Dockerfile
- templates/**
- CHANGELOG.md

env:
GITHUB_REGISTRY: ghcr.io
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coolify-staging-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- docker/coolify-realtime/Dockerfile
- docker/testing-host/Dockerfile
- templates/**
- CHANGELOG.md

env:
GITHUB_REGISTRY: ghcr.io
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ scripts/load-test/*
.env.dusk.local
docker/coolify-realtime/node_modules
.DS_Store
Changelog.md

0 comments on commit c4735f2

Please sign in to comment.