Skip to content

Merge branch 'ci' of github.com:coavins/zomboid-coavins-firearms into ci #35

Merge branch 'ci' of github.com:coavins/zomboid-coavins-firearms into ci

Merge branch 'ci' of github.com:coavins/zomboid-coavins-firearms into ci #35

Workflow file for this run

name: changelog
on:
push:
branches:
- ci
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
- name: Update CHANGELOG
id: changelog
uses: requarks/[email protected]
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
writeToFile: true
excludeTypes: build,other,style
- name: Commit changelog
uses: EndBug/add-and-commit@v9
with:
add: CHANGELOG.md
default_author: github_actions
fetch: true
pathspec_error_handling: exitAtEnd
push: true
message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'