Skip to content

fix(rundeck-notify): install jq if not present on runner #10

fix(rundeck-notify): install jq if not present on runner

fix(rundeck-notify): install jq if not present on runner #10

Workflow file for this run

name: Create release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changelog from CHANGELOG.md
run: |
tag="${GITHUB_REF#refs/tags/}"
echo "Tag: $tag"
changelog=$(awk "/^## \[$tag\]/{flag=1;next}/^## /{flag=0}flag" CHANGELOG.md)
echo "$changelog" > NOTES.md
cat NOTES.md
- name: Create release
if: ${{ !env.ACT }} # do not run locally
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="$tag" \
-F NOTES.md