Skip to content

Commit

Permalink
Make release optional only on manually triggered runs
Browse files Browse the repository at this point in the history
  • Loading branch information
aadnekar committed Dec 18, 2023
1 parent 86b474c commit be3ed49
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
release:
required: true
default: false
type: boolean
prerelease:
description: 'Make the release a pre-release'
required: true
default: true
type: boolean
draft:
description: 'Create draft release'
required: true
default: true
type: boolean


jobs:
build_on_windows:
Expand All @@ -20,8 +37,13 @@ jobs:
runner: ubuntu-latest
electronArgument: ''
release:
uses: ./.github/workflows/release.yml
if: github.event_name == 'workflow_dispatch' && inputs.release
needs: [ build_on_windows, build_on_ubuntu ]
uses: ./.github/workflows/release.yml
with:
prerelease: ${{ inputs.prerelease }}
draft: ${{ inputs.draft }}


# build_on_mac_intel:
# uses: ./.github/workflows/build.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: GitHub Release of nRF Connect for Desktop

on:
workflow_dispatch:
workflow_call:
inputs:
prerelease:
description: 'Make the release a pre-release'
Expand Down

0 comments on commit be3ed49

Please sign in to comment.