Skip to content

Daily: Fix ERB Linting Issues #395

Daily: Fix ERB Linting Issues

Daily: Fix ERB Linting Issues #395

---
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 }}