Skip to content

Commit

Permalink
actions/github-script@v6
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Aug 5, 2023
1 parent 9c8cceb commit e74cca9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
if: github.repository_owner == 'VOICEVOX'
steps:
- name: Trigger workflow_dispatch
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { owner, repo } = context.repo
await github.request(`POST /repos/${owner}/${repo}/actions/workflows/build.yml/dispatches`, {
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build.yml',
ref: 'main',
inputs: {
version: '999.999.999',
Expand Down

0 comments on commit e74cca9

Please sign in to comment.