Skip to content

v0.3.3

v0.3.3 #30

Workflow file for this run

name: Changelog Updater
on:
release:
types:
- created
push:
branches:
- 'main'
jobs:
changelog:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: "✏️ Generate release changelog"
uses: janheinrichmerker/action-github-changelog-generator@v2.4
with:
token: ${{ secrets.KITCHEN_YANSIBLE_PROVISIONER }}
- name: Get branch name
id: branch-name
run: |
if [[ $GITHUB_EVENT_NAME == 'pull_request' ]]; then
echo "branch=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
else
echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add CHANGELOG.md
git commit -m "Update changelog"
git push origin HEAD:${{ steps.branch-name.outputs.branch }}