-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from pnnl/release-merge-to-production
Github workflow for release merge to production
- Loading branch information
Showing
1 changed file
with
33 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,33 @@ | ||
name: Merge latest release from main to production branch | ||
|
||
on: | ||
release: | ||
types: [published] #Triggers when a release is published | ||
|
||
jobs: | ||
release-merge-to-production: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step to checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set environment variables | ||
run: | | ||
echo "PULL_REQUEST_TITLE=Release Merge to Production" >> $GITHUB_ENV | ||
echo "PULL_REQUEST_BODY='This pull request merges the latest release into production branch" >> $GITHUB_ENV | ||
- name: create-pull-request | ||
uses: vsoch/pull-request-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: "main" | ||
PULL_REQUEST_BRANCH: "production" | ||
PULL_REQUEST_FROM_BRANCH: "main" | ||
PULL_REQUEST_REVIEWERS: sudhacheran | ||
with: | ||
title: "${{ env.PULL_REQUEST_TITLE }}" | ||
body: "${{ env.PULL_REQUEST_BODY }}" | ||
|
||
|