Skip to content

Commit

Permalink
Add workflow_dispatch for release in litmus ansible (#20)
Browse files Browse the repository at this point in the history
* Add workflow_dispatch for release in litmus ansible

Signed-off-by: Udit Gaurav <[email protected]>

* Update release.yml

Co-authored-by: Karthik Satchitanand <[email protected]>
  • Loading branch information
uditgaurav and Karthik Satchitanand authored Oct 15, 2020
1 parent 755a391 commit 5347e55
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@
# Please provide the release version and release tag in github secrets for the upcoming release.
name: AutoRelease

# Executes a job at 10:15am on the 15th day of every month
on:
schedule:
- cron: '0 15 10 15 * *'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tag:
description: 'Release tag'
required: true
branch:
description: 'Release branch name'
required: true

jobs:
release:
Expand All @@ -21,12 +30,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: '${{ secrets.RELEASE_BRANCH }}'
branch: '${{ github.event.inputs.branch }}'

# Provide release tag from the github secret ex. 1.9.0
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ secrets.RELEASE_TAG }}"
automatic_release_tag: "${{ github.event.inputs.tag }}"
prerelease: false
title: "${{ secrets.RELEASE_TAG }}"
title: "${{ github.event.inputs.tag }}"

0 comments on commit 5347e55

Please sign in to comment.