Skip to content

Commit

Permalink
Allow Nightly with version increase (#1244)
Browse files Browse the repository at this point in the history
... makes it easier because no manual commits needed anymore
  • Loading branch information
Apollon77 authored Sep 27, 2024
1 parent db8c056 commit 08865c2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/nightly-dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ on:
schedule:
- cron: 0 2 * * * # Every day at 02:00
workflow_dispatch: # Manually on demand
inputs:
versionBump:
description: 'Type of version bump'
required: true
default: 'prerelease'
type: choice
options:
- prerelease
- prepatch
- preminor
- premajor

jobs:
publish-config:
Expand Down Expand Up @@ -83,6 +94,8 @@ jobs:
- name: Determine the version bump
if: steps.changes.outputs.result == 'ok'
env:
VERSION_BUMP: ${{ inputs.versionBump }}
id: version
uses: actions/github-script@v7
with:
Expand Down Expand Up @@ -113,7 +126,8 @@ jobs:
}
// Figure out the next version
return `${semver.inc(parsed, "prerelease", prereleaseIdentifier)}-${dateStr}-${sha}`;
const versionBump = process.env.VERSION_BUMP || "prerelease";
return `${semver.inc(parsed, versionBump, prereleaseIdentifier)}-${dateStr}-${sha}`;
- name: Bump version locally
if: steps.changes.outputs.result == 'ok'
Expand Down

0 comments on commit 08865c2

Please sign in to comment.