-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore/Add auto release feature throgh github actions (#19)
Signed-off-by: Udit Gaurav <[email protected]>
- Loading branch information
1 parent
21cc2da
commit 755a391
Showing
1 changed file
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# 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. | ||
name: AutoRelease | ||
|
||
# Executes a job at 10:15am on the 15th day of every month | ||
on: | ||
schedule: | ||
- cron: '0 15 10 15 * *' | ||
|
||
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 }}" |