Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

87.0.1

87.0.1 #84

Workflow file for this run

name: Release Notes
on:
push:
tags:
- '*'
jobs:
notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Previous Tag
run: |
PREVIOUS_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))
echo ${PREVIOUS_TAG}
echo "previous_tag=${PREVIOUS_TAG}" >> $GITHUB_ENV
- name: Get New Tag
run: |
NEW_TAG=${GITHUB_REF#refs/tags/}
echo ${NEW_TAG}
echo "new_tag=${NEW_TAG}" >> $GITHUB_ENV
- uses: actions/setup-node@v4
- name: Generate Release Notes
id: notes
run: |
NOTES=$(npx generate-github-release-notes ilios common ${{ env.previous_tag }} ${{env.new_tag}})
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "${NOTES}"
echo "RELEASE_NOTES<<$EOF" >> "$GITHUB_ENV"
echo "${NOTES}" >> $GITHUB_ENV
echo "$EOF" >> "$GITHUB_ENV"
- uses: ncipollo/release-action@v1
with:
body: ${{env.RELEASE_NOTES}}
token: ${{ secrets.ZORGBORT_TOKEN }}