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:
10
.github/workflows/changelog.yml
vendored
10
.github/workflows/changelog.yml
vendored
@@ -3,8 +3,6 @@ name: Changelog
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -14,6 +12,8 @@ jobs:
|
|||||||
changelog:
|
changelog:
|
||||||
name: Generate changelog
|
name: Generate changelog
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,7 +22,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
uses: orhun/git-cliff-action@v4
|
uses: orhun/git-cliff-action@v4
|
||||||
id: git-cliff
|
|
||||||
with:
|
with:
|
||||||
config: cliff.toml
|
config: cliff.toml
|
||||||
args: --verbose
|
args: --verbose
|
||||||
@@ -30,11 +29,10 @@ jobs:
|
|||||||
OUTPUT: CHANGELOG.md
|
OUTPUT: CHANGELOG.md
|
||||||
GITHUB_REPO: ${{ github.repository }}
|
GITHUB_REPO: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit
|
||||||
run: |
|
run: |
|
||||||
git config user.name 'github-actions[bot]'
|
git config user.name 'github-actions[bot]'
|
||||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
git checkout -b git-cliff
|
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
git commit -m "docs: update changelog"
|
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
|
||||||
|
@@ -12,6 +12,7 @@ on:
|
|||||||
- docker/coolify-realtime/Dockerfile
|
- docker/coolify-realtime/Dockerfile
|
||||||
- docker/testing-host/Dockerfile
|
- docker/testing-host/Dockerfile
|
||||||
- templates/**
|
- templates/**
|
||||||
|
- CHANGELOG.md
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_REGISTRY: ghcr.io
|
GITHUB_REGISTRY: ghcr.io
|
||||||
|
1
.github/workflows/coolify-staging-build.yml
vendored
1
.github/workflows/coolify-staging-build.yml
vendored
@@ -12,6 +12,7 @@ on:
|
|||||||
- docker/coolify-realtime/Dockerfile
|
- docker/coolify-realtime/Dockerfile
|
||||||
- docker/testing-host/Dockerfile
|
- docker/testing-host/Dockerfile
|
||||||
- templates/**
|
- templates/**
|
||||||
|
- CHANGELOG.md
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_REGISTRY: ghcr.io
|
GITHUB_REGISTRY: ghcr.io
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,3 +36,4 @@ scripts/load-test/*
|
|||||||
.env.dusk.local
|
.env.dusk.local
|
||||||
docker/coolify-realtime/node_modules
|
docker/coolify-realtime/node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
Changelog.md
|
||||||
|
Reference in New Issue
Block a user