fix: manage_libraryをfalseにしたリソースを指定する (#1483) #212
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: Release latest dev build | |
# masterブランチが更新されるたびに開発版をビルドしてデプロイする。 | |
# バージョン(タグ)は最新リリースのバージョンを`X.Y.Z`としたときの`X.Y+1.0-dev`。 | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "docs/**" | |
- "test/**" | |
jobs: | |
latest-dev-build: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'VOICEVOX' | |
steps: | |
- name: Trigger workflow_dispatch | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const latest_release = await github.rest.repos.getLatestRelease({ | |
owner: context.repo.owner, | |
repo: context.repo.repo | |
}); | |
const split_version = latest_release.data.tag_name.split('.'); | |
const dev_version = `${split_version[0]}.${parseInt(split_version[1]) + 1}.0-dev`; | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'build-engine-package.yml', | |
ref: 'master', | |
inputs: { | |
version: dev_version, | |
prerelease: true | |
} | |
}) | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'build-engine-container.yml', | |
ref: 'master', | |
inputs: { | |
version: dev_version | |
} | |
}) | |
console.log(`Triggered workflow_dispatch for ${dev_version}`); |