Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 17 additions & 37 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
ref: ${{ github.ref_name }}
fetch-depth: 0

Expand All @@ -464,39 +464,19 @@ jobs:

echo "✅ Updated version to $VERSION"

- name: Create Pull Request for version update
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: bump version to ${{ needs.determine-release.outputs.new_version }}"
branch: "release/version-${{ needs.determine-release.outputs.new_version }}"
delete-branch: true
base: master
title: "chore: bump version to ${{ needs.determine-release.outputs.new_version }}"
body: |
🤖 **Automated version bump**

This PR updates the version to `${{ needs.determine-release.outputs.new_version }}` following the release.

## Changes
- Updated `build.zig.zon` version
- Updated `VERSION` file

## Release
- Release: [${{ needs.determine-release.outputs.new_version }}](https://github.com/${{ github.repository }}/releases/tag/${{ needs.determine-release.outputs.new_version }})

## Instructions
This PR was automatically created and can be merged to sync version files.

To enable auto-merge for future version PRs:
1. Go to Settings → General → Pull Requests
2. Enable "Allow auto-merge"

---

_This PR can be safely merged or closed if you prefer manual version management._
labels: |
automated
release
chore
assignees: ${{ github.actor }}
- name: Commit and push version update
run: |
NEW_VERSION="${{ needs.determine-release.outputs.new_version }}"

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git add build.zig.zon VERSION

if git diff --staged --quiet; then
echo "ℹ️ No changes to commit"
else
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
git push origin HEAD:${{ github.ref_name }}
echo "✅ Pushed version update to ${{ github.ref_name }}"
fi
Loading