Daily: Fix StandardRB Issues #395
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: 'Daily: Fix StandardRB Issues' | |
| on: | |
| schedule: | |
| - cron: 0 4 * * * # Daily at 4am UTC (staggered from other daily jobs) | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| standardrb-fix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| with: | |
| token: ${{ secrets.AUTOMERGE_TOKEN }} | |
| fetch-depth: 0 # Full history for better git operations | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Git setup | |
| uses: ./.github/actions/git-setup | |
| - name: Create or switch to update branch | |
| run: | | |
| git checkout -B automated/standardrb-fixes | |
| - name: Run StandardRB with auto-fix | |
| run: | | |
| bundle exec standardrb --fix-unsafely | |
| - name: Commit, push, and create PR | |
| uses: ./.github/actions/create-automation-pr | |
| with: | |
| type: standardrb | |
| branch-name: automated/standardrb-fixes | |
| commit-message: | | |
| Fix StandardRB linting issues | |
| - Auto-corrected Ruby style issues | |
| - Applied standardrb --fix-unsafely | |
| [Automated daily update] | |
| github-token: ${{ secrets.AUTOMERGE_TOKEN }} |