Run nitpick to sync CI configs #24
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: Run nitpick to sync CI configs | |
| on: | |
| schedule: | |
| - cron: '0 3 * * 1' # Every Monday at 03:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| nitpick: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Install nitpick | |
| run: pipx install nitpick | |
| - name: Run nitpick | |
| run: nitpick fix || true | |
| shell: bash | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0 | |
| with: | |
| commit-message: "ci(nitpick): Sync CI configs" | |
| title: "ci(nitpick): Sync CI configs" | |
| body: "Automated run of nitpick fix." | |
| branch: "nitpick" | |
| base: ${{ github.ref_name }} | |
| labels: "nitpick" | |
| reviewers: "linuxdaemon" | |
| assignees: "linuxdaemon" | |
| sign-commits: true |