Skip to content

Commit

Permalink
Merge pull request #198 from pnnl/release-merge-to-production
Browse files Browse the repository at this point in the history
Github workflow for release merge to production
  • Loading branch information
mvgeorgescu authored Jun 3, 2024
2 parents 81a6b8b + 6a1312b commit 2af3079
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release_merge_to_production.yml
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 }}"


0 comments on commit 2af3079

Please sign in to comment.