chore(deps): update actions/cache digest to caa2961 #163
Workflow file for this run
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: Auto Merge | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review, synchronize] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| auto-merge: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| if: >- | |
| startsWith(github.event.pull_request.head.ref, 'renovate/') || | |
| startsWith(github.event.pull_request.head.ref, 'worktree-') || | |
| startsWith(github.event.pull_request.head.ref, 'ccw-') | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - name: GitHub App トークンの生成 | |
| id: app-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3 | |
| with: | |
| app-id: ${{ secrets.GHA_APP_ID }} | |
| private-key: ${{ secrets.GHA_APP_PRIVATE_KEY }} | |
| - name: PR の approve | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: | | |
| gh pr review "${{ github.event.pull_request.number }}" \ | |
| --repo "${{ github.repository }}" \ | |
| --approve \ | |
| --body "GitHub App による自動承認(自動マージ対象ブランチ)" | |
| - name: auto-merge の有効化(squash) | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: | | |
| gh pr merge "${{ github.event.pull_request.number }}" \ | |
| --repo "${{ github.repository }}" \ | |
| --squash \ | |
| --auto |