Skip to content

Commit

Permalink
fix: 🐛 fix and test changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Jan 29, 2025
1 parent c3f28c7 commit a0c87c7
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/fixtures/changelog-traefik.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## [v34.2.0](https://github.com/traefik/traefik-helm-chart/compare/v34.1.0...v34.2.0) (2025-01-28)

## :rocket: Features

- feat: ✨ add hub tracing capabilities #1322 by @darkweaver87

## :bug: Bug fixes

- fix: 🐛 permanent redirect should be disableable #1319 by @darkweaver87

## :package: Others

- docs: 📚️ fix typo in Guidelines.md #1320 by @lbarnkow
- chore: update issue template #1316 by @mloiseleur
- chore(release): publish v34.2.0 #1323 by @darkweaver87
46 changes: 46 additions & 0 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Test release

on:
pull_request:
paths:
- .github/fixtures/changelog-traefik.md
- .github/workflows/release.yaml
- .github/workflows/changelog.json

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Render traefik changelog configuration
env:
REGEXP: "?!CRDs-"
run: |
export DATE=$(date +%F); cat .github/workflows/changelog.json | envsubst > /tmp/changelog.json; cat /tmp/changelog.json
- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
fromTag: v34.1.0
toTag: v34.2.0
configuration: "/tmp/changelog.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Write changelog
run: |
cat <<EOF > /tmp/changelog.md
${{ steps.changelog.outputs.changelog }}
EOF
- name: Check that the files are the exact same
uses: LouisBrunner/[email protected]
with:
old: .github/fixtures/changelog-traefik.md
new: /tmp/changelog.md
mode: strict
tolerance: same

0 comments on commit a0c87c7

Please sign in to comment.