Skip to content

Commit

Permalink
Adding ability to force a release
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Sep 21, 2024
1 parent 07e4fcf commit 0eec12c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
simulatorVersion:
description: New version of the underlying simulation tool (e.g., '1.5.6')
required: true
forceRelease:
description: Type "true" (case sensitive) to ensure a release will happen (use carefully!)
required: true
schedule:
- cron: "0 0 * * *"

Expand Down Expand Up @@ -203,6 +206,10 @@ jobs:
run: |
release="0"
if [ "true" == "${{ github.event.inputs.simulatorVersion }}" ]; then
release="1"
fi
if [ ! -z "${{ steps.update-simulator-version.outputs.simulatorVersion }}" ]; then
if [ "${{ github.ref }}" == "${{ steps.get-main-branch.outputs.mainBranchRef }}" ]; then
release="1"
Expand All @@ -216,6 +223,8 @@ jobs:
fi
fi
if
echo "::set-output name=release::$release"
# If new tag, commit and push documentation
Expand Down

0 comments on commit 0eec12c

Please sign in to comment.