Merge pull request #126 from inbo/sop-039-nl #19
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
on: | |
push: | |
tags: | |
- 'protocols-*' | |
name: Create Release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get tag message | |
run: | | |
TAG_BODY=$(git tag --contains ${{ github.sha }} -n100 | awk '(NR>1)') | |
echo "::set-output name=TAG_BODY::$TAG_BODY" | |
id: tag-body | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: ${{ steps.tag-body.outputs.TAG_BODY }} | |
draft: false | |
prerelease: false |