Skip to content

Commit

Permalink
nightlyリリースに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Aug 6, 2023
1 parent 5e1e589 commit e736840
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
code_signing:
description: "コード署名する"
type: boolean
default: false
upload_artifact:
description: "デバッグ用に成果物をartifactにアップロードするか"
type: boolean
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/release_latest.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release latest
name: Release nightly

on:
push:
branches:
- main
# branches:
# - main

jobs:
build:
Expand All @@ -15,14 +15,21 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const latest_version = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
}).data.tag_name;
const split_version = latest_version.split('.');
const nightly_version = `${split_version[0]}.${parseInt(split_version[1]) + 1}.0-nightly`;
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build.yml',
ref: 'main',
inputs: {
version: '999.999.999',
prerelease: true,
code_signing: false
version: nightly_version,
prerelease: true
}
})

0 comments on commit e736840

Please sign in to comment.