Skip to content

Commit

Permalink
update workflow - add error message in issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ivvist committed May 26, 2024
1 parent 27c448a commit 9cc4924
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,20 @@ jobs:
repo: ${{ inputs.repo }}
issue: ${{ inputs.issue }}
run: curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/close-issue.sh | bash

handle-failure:
needs: cherry_pick
runs-on: ubuntu-latest
if: failure()
steps:
- name: Add comment to issue
env:
GH_TOKEN: ${{ secrets.git_token }}
org: ${{ inputs.org }}
repo: ${{ inputs.repo }}
team: ${{ inputs.team }}
user: ${{ inputs.user }}
issue: ${{ inputs.issue }}
body: "Error occured"
run: |
curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/add-issue-commit.sh | bash
17 changes: 17 additions & 0 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,20 @@ jobs:
repo: ${{ inputs.repo }}
issue: ${{ inputs.issue }}
run: curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/close-issue.sh | bash

handle-failure:
needs: make_rc
runs-on: ubuntu-latest
if: failure()
steps:
- name: Add comment to issue
env:
GH_TOKEN: ${{ secrets.git_token }}
org: ${{ inputs.org }}
repo: ${{ inputs.repo }}
team: ${{ inputs.team }}
user: ${{ inputs.user }}
issue: ${{ inputs.issue }}
body: "Error occured"
run: |
curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/add-issue-commit.sh | bash

0 comments on commit 9cc4924

Please sign in to comment.