Workflow file for this run
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
name: Merge latest release from main to production branch | |
on: | |
release: | |
types: [published] #Triggers when a release is published | |
branches: | |
- main | |
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, charliepnnl, mvgeorgescu | |
with: | |
title: "${{ env.PULL_REQUEST_TITLE }}" | |
body: "${{ env.PULL_REQUEST_BODY }}" | |