Skip to content

ci(changelog): update changelog action trigger (#68) #33

ci(changelog): update changelog action trigger (#68)

ci(changelog): update changelog action trigger (#68) #33

Workflow file for this run

name: changelog
permissions:
contents: write
on:
push:
branches:
- main
workflow_dispatch:
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
permissions:
contents: write
pull_requests: write

Check failure on line 18 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: 18, Col: 7): Unexpected value 'pull_requests'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Create PR
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore(changelog): update changelog (auto)'
title: 'chore(changelog): update changelog (auto)'
body: 'This PR was created by a GitHub Action to update the changelog.'
branch: bot/auto-changelog-update
base: main