Skip to content

Merge pull request #4546 from dev-hato/renovate/openai-1.x #2840

Merge pull request #4546 from dev-hato/renovate/openai-1.x

Merge pull request #4546 from dev-hato/renovate/openai-1.x #2840

---
name: pr-copy-ci-hato-bot
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
pr-copy-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
cache: npm
node-version-file: package.json
- run: npm ci
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "sudden-death"
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{steps.generate_token.outputs.token}}
script: |
const {tsImport} = require('tsx/esm/api')
const {script} = await tsImport(
'./scripts/pr_copy_ci_hato_bot/pr_copy_ci/dispatch_event.ts',
process.env.GITHUB_WORKSPACE + '/'
)
await script(github, context)
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true