-
Notifications
You must be signed in to change notification settings - Fork 32
33 lines (30 loc) · 1.1 KB
/
issue-if-azure-fail.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Create Issue if Build Fails on Azure
on: [repository_dispatch, workflow_dispatch]
jobs:
clean-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%a-%Y-%m-%d')"
- name: Get libtiledb short SHA
run: echo "LIBTILEDB_SHA=$(git ls-remote https://github.com/TileDB-Inc/TileDB HEAD | cut -c1-7)" >> $GITHUB_ENV
- name: Clean Up Test Branch
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: "azure-wheel-test-${{ steps.date.outputs.date }}-against-${{ env.LIBTILEDB_SHA }}"
notify-fail:
permissions:
issues: write
if: github.event.action == 'failed'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Issue if Build Fails
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: nightly Azure wheel
label: bug,nightly-azure-failure
assignee: KiterLuc,kounelisagis,nguyenc,ihnorton