Skip to content

Enhance onboarding instructions in contribute.md #16

Enhance onboarding instructions in contribute.md

Enhance onboarding instructions in contribute.md #16

name: "Create a Release"
on:
pull_request:
types:
- closed
jobs:
release-if-merged:
if: |
github.event.pull_request.merged == true &&
startsWith(github.head_ref, 'release/v') &&
github.repository == 'NHSDigital/rap-community-of-practice'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get Release Name from PR Branch Name and create a release
run: |
RELEASE_NAME=${HEAD_REF//release\//}
gh release create -d $RELEASE_NAME -t $RELEASE_NAME
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEAD_REF: ${{ github.head_ref }}