-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7e9039
commit 164fd3f
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ on: | |
- cron: 0 0 * * WED | ||
workflow_dispatch: | ||
inputs: | ||
skip-tag-creation: | ||
create-release: | ||
required: false | ||
type: boolean | ||
description: Decides whether this run will create a GitHub release. Defaults to false. | ||
description: If true, this run will tag and create a GitHub Release. Defaults to false. | ||
extension: | ||
required: false | ||
type: string | ||
|
@@ -29,7 +29,7 @@ jobs: | |
shell: pwsh | ||
run: | | ||
"Inputs" | ||
"skip-tag-creation: ${{ github.event.inputs.skip-tag-creation }}" | ||
"create-release: ${{ github.event.inputs.create-release }}" | ||
"extension: ${{ github.event.inputs.extension }}" | ||
- name: Checkout code | ||
|
@@ -45,14 +45,14 @@ jobs: | |
shell: pwsh | ||
|
||
- name: Commit tagger | ||
if: ${{ !github.event.inputs.skip-tag-creation }} | ||
if: ${{ github.event.inputs.create-release != 'false' }} | ||
uses: tvdias/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.get-tag.outputs.tag }} | ||
|
||
- name: Create Release | ||
if: ${{ !github.event.inputs.skip-tag-creation }} | ||
if: ${{ github.event.inputs.create-release != 'false' }} | ||
id: create-release | ||
uses: actions/create-release@v1 | ||
env: | ||
|