Merge pull request #3660 from dev-hato/renovate/openai-1.x #2205
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-copy-ci-hato-bot | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
pr-copy-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Generate a token | |
id: generate_token | |
uses: actions/create-github-app-token@v1.8.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@v7.0.1 | |
with: | |
github-token: ${{steps.generate_token.outputs.token}} | |
script: | | |
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/pr_copy_ci_hato_bot/pr_copy_ci/dispatch_event.js`) | |
await script({ github, context }) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true |