Daily: Fix ERB Linting Issues #388
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 ERB Linting Issues' | |
| on: | |
| schedule: | |
| - cron: 0 3 * * * # Daily at 3am UTC | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write # For PR comments | |
| jobs: | |
| erb-lint: | |
| 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/erb-lint-fixes | |
| - name: Run ERB lint with autocorrect | |
| run: | | |
| bundle exec rake code_standards:erb_lint_fix | |
| - name: Commit, push, and create PR | |
| uses: ./.github/actions/create-automation-pr | |
| with: | |
| type: erb-lint | |
| branch-name: automated/erb-lint-fixes | |
| commit-message: | | |
| Fix ERB linting issues | |
| - Auto-corrected ERB template issues | |
| - Applied erb_lint --autocorrect fixes | |
| [Automated daily update] | |
| github-token: ${{ secrets.AUTOMERGE_TOKEN }} |