hato-botのCIを反映するよ! #7945
This file contains 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: pr-update-readme-sudden-death | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- closed | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
pr-update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
if: github.event_name != 'pull_request' || github.event.action != 'closed' | |
with: | |
# ここでsubmodule持ってくるとdetached headにcommitして死ぬ | |
# submodule: 'recursive' | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- if: github.event_name != 'pull_request' || github.event.action != 'closed' | |
run: sed -i -e "s/Python [0-9.]*/Python $(cat .python-version)/g" README.md | |
- uses: dev-hato/actions-diff-pr-management@7cc8ab103917849f6995064afae9f4cbcfd009ae # v1.1.13 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
branch-name-prefix: readme | |
pr-title-prefix: READMEの記述を直してあげたよ! | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true |