Skip to content

fix(ci): Swap toTag and fromTag to have CI detect new commits #29

fix(ci): Swap toTag and fromTag to have CI detect new commits

fix(ci): Swap toTag and fromTag to have CI detect new commits #29

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 }}

Check failure on line 32 in .github/workflows/changelog.yml

View workflow run for this annotation

GitHub Actions / changelog

Invalid workflow file

The workflow is not valid. .github/workflows/changelog.yml (Line: 32, Col: 20): A mapping was not expected
toTag: ${{ env.previousTag }}
writeToFile: true
excludeTypes: build,other,style
reverseOrder: true
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
if: steps.auto-commit-action.outputs.changes_detected == 'true'
with:
branch: ci
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md