Skip to content

Commit

Permalink
Add workflow_dispatch for release in chaos exporter (#74)
Browse files Browse the repository at this point in the history
Signed-off-by: Udit Gaurav <[email protected]>
  • Loading branch information
uditgaurav authored Oct 15, 2020
1 parent 206b8f7 commit 44fa613
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/release.yml
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 }}"

0 comments on commit 44fa613

Please sign in to comment.