fixup patchback username in workflow #5
This file contains 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: Check Patchback Comment on Edit | |
on: | |
issue_comment: | |
types: | |
- edited | |
jobs: | |
# dump_context: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Dump context | |
# env: | |
# EVENT_CONTEXT: ${{ toJson(github.event) }} | |
# run: | | |
# echo "${EVENT_CONTEXT}" | |
check_patchback_comment: | |
# if patchback[bot] stops working we might want to switch to user.id == 45432694 | |
if: ${{ | |
github.event.issue.pull_request.merged_at && | |
github.event.comment.user.login == 'patchback[bot]' && | |
contains(github.event.comment.body, '💔 cherry-picking failed') | |
}} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add Label for Backport Failure | |
run: | | |
gh pr edit ${{ github.event.issue.number }} -R ${{ github.repository }} --add-label 'backport_failed' | |
env: | |
GH_TOKEN: ${{ github.token }} |