tend-notifications #410
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
| # Generated by tend. Regenerate with: uvx tend@latest init | |
| # | |
| # Do not edit this file directly — it will be overwritten on regeneration. | |
| # To customize behavior, edit the relevant skill (for example, | |
| # `running-tend`) in this repo's .claude/skills/ directory, or open an issue at | |
| # https://github.com/max-sixty/tend/issues for changes that need to | |
| # happen upstream in the tend-ci-runner plugin. | |
| name: tend-notifications | |
| on: | |
| schedule: | |
| - cron: "*/15 * * * *" | |
| workflow_dispatch: | |
| jobs: | |
| notifications: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 60 | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| actions: read | |
| issues: write | |
| steps: | |
| - name: Check for unread notifications | |
| id: check | |
| run: | | |
| COUNT=$(gh api notifications --jq 'length') | |
| echo "count=$COUNT" >> "$GITHUB_OUTPUT" | |
| if [ "$COUNT" = "0" ]; then | |
| echo "No unread notifications — skipping" | |
| else | |
| echo "$COUNT unread notification(s) — proceeding" | |
| fi | |
| env: | |
| GH_TOKEN: ${{ secrets.PRQL_BOT_GITHUB_TOKEN }} | |
| - uses: actions/checkout@v6 | |
| if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch' | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| token: ${{ secrets.PRQL_BOT_GITHUB_TOKEN }} | |
| - uses: ./.github/actions/tend-setup | |
| if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch' | |
| - uses: max-sixty/tend@v1 | |
| if: steps.check.outputs.count != '0' || github.event_name == 'workflow_dispatch' | |
| with: | |
| github_token: ${{ secrets.PRQL_BOT_GITHUB_TOKEN }} | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| bot_name: prql-bot | |
| model: opus | |
| prompt: | | |
| /tend-ci-runner:notifications |