Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

chore(release): package:win32_runner v0.2.4 (#26) #1

chore(release): package:win32_runner v0.2.4 (#26)

chore(release): package:win32_runner v0.2.4 (#26) #1

Workflow file for this run

name: Release
on:
push:
branches: [main]
paths:
- CHANGELOG.md
- pubspec.yaml
workflow_dispatch:
jobs:
check-release:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: ubuntu-latest
outputs:
should_publish: ${{ steps.check_release.outputs.should_publish }}
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v6
- name: 🔍 Check if There is a Release Commit
id: check_release
run: |
msg=$(git log -1 --pretty=format:%s)
echo "📜 Latest commit: $msg"
if [[ "$msg" =~ chore\(release\):[[:space:]]+.*package:([a-zA-Z0-9_]+).*v ]]; then
pkg="${BASH_REMATCH[1]}"
echo "🎯 Package: $pkg"
echo "should_publish=true" >> $GITHUB_OUTPUT
else
echo "❌ Not a release commit"
echo "should_publish=false" >> $GITHUB_OUTPUT
fi
release:
needs: [check-release]
if: ${{ github.event_name == 'workflow_dispatch' || needs.check-release.outputs.should_publish == 'true' }}
uses: halildurmus/workflows/.github/workflows/dart_release.yml@main
secrets:
token: ${{ secrets.PAT }}