Skip to content

Commit fbf244a

Browse files
Create issue if release workflow fails (#4729)
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]>
1 parent 2f96db6 commit fbf244a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,17 @@ jobs:
170170
data: fs.readFileSync(file)
171171
});
172172
}
173+
174+
Create-Issue-On-Fail:
175+
permissions:
176+
issues: write
177+
runs-on: ubuntu-latest
178+
needs: Publish-Release
179+
if: (failure() || cancelled()) && github.event_name != 'workflow_dispatch'
180+
steps:
181+
- name: Create Issue if Build Fails
182+
uses: TileDB-Inc/github-actions/open-issue@main
183+
with:
184+
name: Release failed
185+
label: bug
186+
assignee: KiterLuc,teo-tsirpanis,davisp

0 commit comments

Comments
 (0)