Error Detection & Auto Issue #1
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: Error Detection & Auto Issue | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 */6 * * *" | |
| jobs: | |
| detect-errors: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Simulate production log scan | |
| run: | | |
| echo "Checking logs..." | |
| echo "ERROR_FOUND=true" >> $GITHUB_ENV | |
| - name: Create GitHub Issue if error found | |
| if: env.ERROR_FOUND == 'true' | |
| uses: imjohnbo/issue-bot@v3 | |
| with: | |
| title: "[AUTO] Production error detected" | |
| body: | | |
| An automatic scan detected a potential production issue. | |
| Please investigate the logs and affected services. | |
| Triggered automatically by GitHub Actions. | |
| labels: "bug,auto-detected,jules" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |