Skip to content

feat: use autofix.ci to auto-update dist/ on all PRs#308

Merged
jdx merged 2 commits intomainfrom
feat/autofix-ci-integration
Oct 31, 2025
Merged

feat: use autofix.ci to auto-update dist/ on all PRs#308
jdx merged 2 commits intomainfrom
feat/autofix-ci-integration

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Oct 31, 2025

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_TOKEN don'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:

  • ✅ CI tests run after dist/ is updated
  • ✅ Works on ALL PRs, not just Renovate
  • ✅ Renovate still recognizes and can rebase PRs (via gitIgnoredAuthors)

Changes

  • Renamed workflow: renovate-dist-update.ymlautofix.yml
  • Removed filters: Now runs on all PRs (not just when specific files change)
  • Removed Renovate check: Works for all PR authors, not just renovate[bot]
  • Switched to autofix.ci: Replaced manual commit logic with autofix.ci action
  • Updated permissions: Changed from write to read (autofix.ci handles commits)
  • Updated renovate.json: Added autofix.ci[bot] to gitIgnoredAuthors

Setup 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:

  1. Run on every PR
  2. Execute npm run all to rebuild dist/
  3. Let autofix.ci commit any changes
  4. Trigger CI workflows to verify the changes

🤖 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.

  • CI:
    • New Workflow /.github/workflows/autofix.yml:
      • Triggers on pull_request and pushes to main.
      • Sets contents: read permissions.
      • Checks out code, sets up Node.js 24 with npm cache, runs npm ci and npm run all.
      • Invokes autofix-ci/action@v1 to commit resulting changes.

Written by Cursor Bugbot for commit 7d165ea. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

@jdx jdx force-pushed the feat/autofix-ci-integration branch 3 times, most recently from 4410080 to 520b55f Compare October 31, 2025 14:49
@jdx jdx enabled auto-merge (squash) October 31, 2025 14:50
@jdx jdx force-pushed the feat/autofix-ci-integration branch from 28518be to 57a96a5 Compare October 31, 2025 14:51
jdx and others added 2 commits October 31, 2025 09:51
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>
@jdx jdx force-pushed the feat/autofix-ci-integration branch from 57a96a5 to 7d165ea Compare October 31, 2025 14:51
@jdx jdx merged commit 3bd825a into main Oct 31, 2025
20 of 21 checks passed
@jdx jdx deleted the feat/autofix-ci-integration branch October 31, 2025 14:52
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant