Skip to content

Merge pull request #32 from CPS-IT/task/disable-osv-alerts #8

Merge pull request #32 from CPS-IT/task/disable-osv-alerts

Merge pull request #32 from CPS-IT/task/disable-osv-alerts #8

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
# Job: Create release
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
# Check if tag is valid
- name: Check tag
run: |
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi
# Create release
- name: Create release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.RELEASE_TOKEN }}
generateReleaseNotes: true