-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow_dispatch for release in chaos exporter (#74)
Signed-off-by: Udit Gaurav <[email protected]>
- Loading branch information
1 parent
206b8f7
commit 44fa613
Showing
1 changed file
with
25 additions
and
20 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 |
---|---|---|
@@ -1,32 +1,37 @@ | ||
--- | ||
# This workflow is to perform automatic release on litmus-ansible repository | ||
# Please provide the release version and release tag in github secrets for the upcoming release. | ||
# This workflow is to perform automatic release on chaos-exporter repository | ||
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' | ||
|
||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
|
||
# create a release branch from master | ||
# Provide release branch from the github secret ex. 1.9.x | ||
- uses: peterjgrainger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: '${{ secrets.RELEASE_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 }}" | ||
prerelease: false | ||
title: "${{ secrets.RELEASE_TAG }}" | ||
- uses: peterjgrainger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: '${{ github.event.inputs.branch }}' | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "${{ github.event.inputs.tag }}" | ||
prerelease: false | ||
title: "${{ github.event.inputs.tag }}" |