Skip to content

Commit 7d56242

Browse files
authored
Use github.event.client_payload.data.build_id (#1001)
1 parent dad55fd commit 7d56242

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

.github/workflows/issue-if-azure-fail.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,27 @@ jobs:
66
clean-branch:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- name: Get current date
11-
id: date
12-
run: echo "::set-output name=date::$(date +'%a-%Y-%m-%d')"
13-
- name: Get libtiledb short SHA
14-
run: echo "LIBTILEDB_SHA=$(git ls-remote https://github.com/TileDB-Inc/TileDB HEAD | cut -c1-7)" >> $GITHUB_ENV
15-
- name: Clean Up Test Branch
16-
uses: dawidd6/action-delete-branch@v3
17-
with:
18-
github_token: ${{ secrets.GITHUB_TOKEN }}
19-
branches: 'azure-wheel-test-${{ steps.date.outputs.date }}-against-${{ env.LIBTILEDB_SHA }}'
9+
- uses: actions/checkout@v2
10+
- name: Get current date
11+
id: date
12+
run: echo "::set-output name=date::$(date +'%a-%Y-%m-%d')"
13+
- name: Get libtiledb short SHA
14+
run: echo "LIBTILEDB_SHA=$(git ls-remote https://github.com/TileDB-Inc/TileDB HEAD | cut -c1-7)" >> $GITHUB_ENV
15+
- name: Clean Up Test Branch
16+
uses: dawidd6/action-delete-branch@v3
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
branches: "azure-wheel-test-${{ steps.date.outputs.date }}-against-${{ env.LIBTILEDB_SHA }}"
2020

2121
notify-fail:
2222
if: github.event.action == 'failed'
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
26-
- name: Create Issue if Build Fails
27-
uses: JasonEtco/create-an-issue@v2
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
AZURE_BUILD_ID: ${{ github.event.client_payload.build_id }}
31-
with:
32-
filename: .github/workflows/issue-if-azure-fail-template.md
33-
25+
- uses: actions/checkout@v2
26+
- name: Create Issue if Build Fails
27+
uses: JasonEtco/create-an-issue@v2
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
AZURE_BUILD_ID: ${{ github.event.client_payload.data.build_id }}
31+
with:
32+
filename: .github/workflows/issue-if-azure-fail-template.md

0 commit comments

Comments
 (0)