Skip to content

ci(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3 (#344) #29

ci(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3 (#344)

ci(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3 (#344) #29

Workflow file for this run

name: Changelog
on:
# Trigger the workflow on pushes to only the 'hotfix' and 'release' branches
push:
branches:
- hotfix/*
- release/*
# Trigger the workflow on manual dispatch
workflow_dispatch:
jobs:
changelog:
name: Update Changelog
runs-on: ubuntu-latest
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
# Set environment variables
- name: Export Properties
id: properties
shell: bash
run: |
PROPERTIES="$(./gradlew properties --console=plain -q)"
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
echo "version=$VERSION" >> $GITHUB_OUTPUT
# Generate a changelog
- name: Generate a changelog
uses: orhun/git-cliff-action@v3.1.0
id: git-cliff
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
GIT_CLIFF_TAG: "${{ steps.properties.outputs.version }}"
# Print the changelog
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"
# Create pull request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.0.5
with:
delete-branch: true
branch-suffix: short-commit-hash
commit-message: |
docs(changelog): update the changelog file
[skip ci]
title: "docs(changelog): update the changelog file"
body: "Current pull request contains patched `CHANGELOG.md` file."
labels: documentation
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true