Revert "Merge pull request #11677 from DestinyItemManager/dependabot/… #383
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Changelog | |
| on: | |
| push: | |
| branches: [master] | |
| paths-ignore: | |
| - 'docs/CHANGELOG.md' # Prevent infinite loops | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-changelog: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.I18N_PAT }} | |
| - uses: ./.github/actions/setup-pnpm | |
| with: | |
| install: 'false' # Don't need dependencies for this script | |
| - name: Update changelog from commits | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| COMMIT_SHAS: ${{ join(github.event.commits.*.id, ' ') }} | |
| run: | | |
| # Process all commits and automatically detect associated PRs using GitHub API | |
| node build/update-changelog.js $COMMIT_SHAS > docs/CHANGELOG.md.new | |
| mv docs/CHANGELOG.md.new docs/CHANGELOG.md | |
| - name: Commit files | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: Apply changelog updates |