Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Aug 6, 2023
1 parent e9e307d commit fe299ea
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/release_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# - main

jobs:
build:
nightly-build:
runs-on: ubuntu-latest
if: github.repository_owner == 'VOICEVOX'
steps:
Expand All @@ -15,18 +15,12 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const hoge = await github.rest.repos.getLatestRelease({
const latest_release = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
})
console.log(hoge.data)
const latest_version = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
}).tag_name;
});
const split_version = latest_version.split('.');
const split_version = latest_release.data.tag_name.split('.');
const nightly_version = `${split_version[0]}.${parseInt(split_version[1]) + 1}.0-nightly`;
github.rest.actions.createWorkflowDispatch({
Expand Down

0 comments on commit fe299ea

Please sign in to comment.