[fix] Remove debug push trigger from release-api-changelogs workflow

Remove the push trigger for sno-api-changelog branch that was added
for testing purposes. The workflow now only runs on successful completion
of the Release NPM Types workflow. Also simplify the PR base branch
to always target main.
This commit is contained in:
snomiao
2026-03-13 02:01:58 +00:00
parent d32edbc986
commit 3724ae7549

View File

@@ -5,9 +5,6 @@ on:
workflows: ['Release NPM Types'] workflows: ['Release NPM Types']
types: types:
- completed - completed
push:
branches:
- sno-api-changelog
concurrency: concurrency:
group: release-api-changelogs-${{ github.workflow }} group: release-api-changelogs-${{ github.workflow }}
@@ -17,8 +14,8 @@ jobs:
generate_changelog: generate_changelog:
name: Generate API Changelog name: Generate API Changelog
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Only run on successful completion of the Release NPM Types workflow or on push to sno-api-changelog # Only run on successful completion of the Release NPM Types workflow
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
@@ -195,7 +192,7 @@ jobs:
--- ---
🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
branch: api-changelog-v${{ steps.current_version.outputs.version }} branch: api-changelog-v${{ steps.current_version.outputs.version }}
base: ${{ github.event_name == 'push' && github.ref_name || 'main' }} base: main
labels: documentation labels: documentation
delete-branch: true delete-branch: true
draft: true draft: true