Skip to content

Commit

Permalink
Create issue if release workflow fails (#4729)
Browse files Browse the repository at this point in the history
This PR adds functionality to create issue when release workflow fails.

This is how the issue will look:
dudoslav#1

---
TYPE: NO_HISTORY
DESC: Create issue if release workflow fails

---------

Co-authored-by: Theodore Tsirpanis <[email protected]>
  • Loading branch information
dudoslav and teo-tsirpanis authored Feb 15, 2024
1 parent 2f96db6 commit fbf244a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,17 @@ jobs:
data: fs.readFileSync(file)
});
}
Create-Issue-On-Fail:
permissions:
issues: write
runs-on: ubuntu-latest
needs: Publish-Release
if: (failure() || cancelled()) && github.event_name != 'workflow_dispatch'
steps:
- name: Create Issue if Build Fails
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: Release failed
label: bug
assignee: KiterLuc,teo-tsirpanis,davisp

0 comments on commit fbf244a

Please sign in to comment.