fix(serverless-init): prevent stale log tag cache prime from clobbering /run update #281250
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: Warn Failed Dependency Bot PR | |
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| - edited | |
| jobs: | |
| check_comment: | |
| if: github.event.comment.user.id == 'dd-devflow[bot]' && (github.event.issue.user.login == 'dependabot[bot]' || github.event.issue.user.login == 'renovate[bot]') | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: dependabot | |
| steps: | |
| - name: Check for error in comment | |
| id: check-comment | |
| env: | |
| PR_BODY: ${{ github.event.comment.body }} | |
| run: | | |
| if echo "$PR_BODY" | grep -iE "(blocked|cancelled|conflicts|draft|error|failed|failing|timeout|unqueued|updated)"; then | |
| echo "not_merged=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "not_merged=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Contact agent-devx | |
| if: ${{ steps.check-comment.outputs.not_merged == 'true' }} | |
| run: | | |
| message="Hi!\nThis dependabot PR ${{github.event.issue.html_url}} was not merged.\nPlease have a look." | |
| curl -X POST -H "Content-Type: application/json" --data '{"message": "'"$message"'"}' ${{ secrets.SLACK_DEPENDABOT_WEBHOOK }} |