Skip to content

Merge pull request #3735 from dev-hato/renovate/importlib-metadata-7.x #2192

Merge pull request #3735 from dev-hato/renovate/importlib-metadata-7.x

Merge pull request #3735 from dev-hato/renovate/importlib-metadata-7.x #2192

---
name: pr-release-hato-bot
on:
push:
branches:
- develop
jobs:
# リリース用のPRを作成するjob
pr-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Get diff
id: get_diff
run: bash "${GITHUB_WORKSPACE}/scripts/pr_release_hato_bot/pr_release/get_diff.sh"
- name: Get PullRequests
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: ${{ steps.get_diff.outputs.result != '' }}
id: get_pull_requests
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/get_pull_requests_hato_bot.js`)
return await script({github, context})
- name: Create PullRequest
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: ${{ steps.get_diff.outputs.result != '' && steps.get_pull_requests.outputs.result == 0 }}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/pr_release_hato_bot/pr_release/create_pull_request.js`)
await script({github, context})
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true