docs: add yamcodes as a contributor for question, ideas, and 6 more #22
Workflow file for this run
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
| name: autofix.ci # needed to securely identify the workflow | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-latest | |
| # Skip autofix for bot commits to avoid race conditions | |
| # where manypkg fix updates to unpublished versions | |
| if: | | |
| github.event_name == 'pull_request' || | |
| (github.event_name == 'push' && github.event.sender.type != 'Bot' && github.event.head_commit != null) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| # Note: We only skip manypkg for Changesets-driven version bumps. | |
| # This avoids touching versions that haven't been published yet, | |
| # while still letting autofix handle normal PRs and pushes. | |
| - name: Decide if manypkg should be skipped | |
| env: | |
| HEAD_REF: ${{ github.event.pull_request.head.ref }} | |
| COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | |
| run: | | |
| SKIP_MANYPKG=false | |
| if [ "${{ github.event_name }}" = "pull_request" ] && [ "$HEAD_REF" = "changeset-release/main" ]; then | |
| SKIP_MANYPKG=true | |
| elif [ "${{ github.event_name }}" = "push" ]; then | |
| if echo "$COMMIT_MESSAGE" | grep -qi "Version Packages"; then | |
| SKIP_MANYPKG=true | |
| fi | |
| fi | |
| echo "SKIP_MANYPKG=$SKIP_MANYPKG" >> "$GITHUB_ENV" | |
| - name: Fix linting issues | |
| run: bun run fix | |
| - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 |