feat: use autofix.ci to auto-update dist/ on all PRs#308
Merged
Conversation
4410080 to
520b55f
Compare
28518be to
57a96a5
Compare
Switches from manual commit workflow to autofix.ci for automatically updating the dist/ folder when source files change. This has several advantages: 1. Works on ALL PRs, not just Renovate PRs 2. Commits made by autofix.ci (GitHub App) trigger CI workflows, unlike commits made with GITHUB_TOKEN which don't trigger workflows 3. Renovate recognizes autofix.ci commits via gitIgnoredAuthors and can still auto-rebase PRs Changes: - Renamed workflow from renovate-dist-update.yml to autofix.yml - Removed Renovate-only condition - now runs on all PRs - Removed path filters - runs on every PR - Replaced manual git commit/push with autofix.ci action - Updated renovate.json to ignore autofix.ci[bot] commits - Changed permissions from write to read-only Note: Requires installing the autofix.ci GitHub App: https://github.com/apps/autofix-ci 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The autofix.ci action requires the workflow name to be exactly "autofix.ci" for security reasons. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
57a96a5 to
7d165ea
Compare
Merged
jdx
pushed a commit
that referenced
this pull request
Oct 31, 2025
--- ## [3.4.0](https://github.com/jdx/mise-action/compare/v3.3.1..v3.4.0) - 2025-10-31 ### 🚀 Features - use autofix.ci to auto-update dist/ on all PRs by [@jdx](https://github.com/jdx) in [16e9fd5](16e9fd5) - use autofix.ci to auto-update dist/ on all PRs (#308) by [@jdx](https://github.com/jdx) in [#308](#308) ### 🐛 Bug Fixes - add missing `await` to `core.group` calls (#305) by [@smorimoto](https://github.com/smorimoto) in [#305](#305) - auto-update dist folder in Renovate PRs via GitHub Actions (#306) by [@jdx](https://github.com/jdx) in [#306](#306) - configure Renovate to ignore github-actions[bot] commits by [@jdx](https://github.com/jdx) in [993e7d0](993e7d0) - run auto-update-dist workflow on all PRs by [@jdx](https://github.com/jdx) in [6d0fd75](6d0fd75) ### 📚 Documentation - update to v3 in README (#290) by [@pdecat](https://github.com/pdecat) in [#290](#290) ### ⚙️ Miscellaneous Tasks - upgrade all workflows to Node 24 by [@jdx](https://github.com/jdx) in [c7b5f37](c7b5f37) - remove unused workflow by [@jdx](https://github.com/jdx) in [aecb23d](aecb23d) ### New Contributors * @smorimoto made their first contribution in [#305](#305) * @pdecat made their first contribution in [#290](#290) <!-- generated by git-cliff --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches from our custom GitHub Actions workflow to autofix.ci for automatically updating the
dist/folder. This solves the CI triggering issue and works on all PRs, not just Renovate PRs.Problem Solved
The previous workflow had a critical issue: commits made with
GITHUB_TOKENdon't trigger other CI workflows (by design to prevent infinite loops). This meant that after the dist/ folder was updated, CI wouldn't run to verify the changes.Solution: autofix.ci
autofix.ci uses a GitHub App token to make commits, which does trigger CI workflows. This ensures that:
gitIgnoredAuthors)Changes
renovate-dist-update.yml→autofix.ymlwritetoread(autofix.ci handles commits)autofix.ci[bot]togitIgnoredAuthorsSetup Required
This PR requires installing the autofix.ci GitHub App:
👉 https://github.com/apps/autofix-ci
Testing
Once the app is installed, this workflow will automatically:
npm run allto rebuild dist/🤖 Generated with Claude Code
Note
Introduce a GitHub Actions workflow that builds with Node 24 on PRs and main pushes, then uses autofix.ci to commit resulting changes.
/.github/workflows/autofix.yml:pull_requestand pushes tomain.contents: readpermissions.24with npm cache, runsnpm ciandnpm run all.autofix-ci/action@v1to commit resulting changes.Written by Cursor Bugbot for commit 7d165ea. This will update automatically on new commits. Configure here.