ci(deps): update actions/checkout action to v7 (#122) #75
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
| # This file is @generated by <https://github.com/liblaf/copier-release>. | |
| # DO NOT EDIT! | |
| name: Release / PR | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| GIT_CLIFF_CONFIG_URL: https://raw.githubusercontent.com/liblaf/copier-release/refs/heads/main/cliff.toml | |
| concurrency: | |
| group: ${{ github.workflow }} @ ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| version: | |
| name: Version | |
| if: >- | |
| ${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }} | |
| runs-on: ubuntu-latest | |
| outputs: | |
| bumped: ${{ steps.version.outputs.bumped }} | |
| release-as: ${{ steps.version.outputs.release-as }} | |
| tag: ${{ steps.version.outputs.tag }} | |
| version: ${{ steps.version.outputs.version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install git-cliff | |
| uses: taiki-e/install-action@0631aa6515c7d545823c67cfae7ef4fc7f490154 # v2 | |
| with: | |
| tool: git-cliff | |
| - id: version | |
| name: Next version | |
| uses: liblaf/actions/next-version@512d1652c6a71a8f141d1901f50994afaddc925e # v3 | |
| env: | |
| GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| release-pr: | |
| name: Create PR | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| needs: | |
| - version | |
| if: needs.version.outputs.bumped == 'true' | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: release-please | |
| deployment: false | |
| steps: | |
| - id: auth | |
| name: Auth | |
| uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3 | |
| with: | |
| client-id: ${{ vars.APP_CLIENT_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install rumdl | |
| run: pipx install rumdl | |
| - name: Generate changelog | |
| uses: orhun/git-cliff-action@f50e11560dce63f7c33227798f90b924471a88b5 # v4 | |
| env: | |
| GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }} | |
| GIT_CLIFF_TAG: ${{ needs.version.outputs.tag }} | |
| OUTPUT: CHANGELOG.md | |
| - name: Format changelog | |
| run: rumdl fmt CHANGELOG.md | |
| - name: Generate PR body | |
| uses: orhun/git-cliff-action@f50e11560dce63f7c33227798f90b924471a88b5 # v4 | |
| with: | |
| args: --verbose --unreleased --strip all | |
| env: | |
| GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }} | |
| GIT_CLIFF_TAG: ${{ needs.version.outputs.tag }} | |
| OUTPUT: ${{ runner.temp }}/body.md | |
| - name: Format PR body | |
| run: rumdl fmt '${{ runner.temp }}/body.md' | |
| - if: hashFiles('package.json') | |
| name: Bump package.json | |
| run: npm version '${{ needs.version.outputs.version }}' --no-git-tag-version | |
| - name: Create PR | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8 | |
| with: | |
| token: ${{ steps.auth.outputs.token }} | |
| commit-message: "chore(release): ${{ needs.version.outputs.tag }}" | |
| branch: release-please/${{ github.ref_name }} | |
| delete-branch: true | |
| sign-commits: true | |
| title: "chore(release): ${{ needs.version.outputs.tag }}" | |
| body-path: ${{ runner.temp }}/body.md | |
| labels: |- | |
| automerge | |
| release-please | |
| assignees: ${{ github.repository_owner }} |