Skip to content

chore: bump plugin version to 1.4.3 #11

chore: bump plugin version to 1.4.3

chore: bump plugin version to 1.4.3 #11

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract notes from CHANGELOG.md
id: notes
run: |
TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
VERSION="${VERSION%-codex}"
if [ -f CHANGELOG.md ]; then
awk -v ver="$VERSION" '
/^## / { if (found) exit; if (index($0, "[" ver "]")) { found=1; next } }
found { print }
' CHANGELOG.md > release-notes.md
fi
if [ -s release-notes.md ] && grep -q '[^[:space:]]' release-notes.md; then
echo "has_notes=true" >> "$GITHUB_OUTPUT"
else
echo "has_notes=false" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "${{ steps.notes.outputs.has_notes }}" = "true" ]; then
gh release create "${{ github.ref_name }}" --title "${{ github.ref_name }}" --notes-file release-notes.md
else
gh release create "${{ github.ref_name }}" --title "${{ github.ref_name }}" --generate-notes
fi