Skip to content

Commit 92976e5

Browse files
Merge pull request #73 from TransactionProcessing/workflows/#72_raisejobonnightlyfailure
Create job on nightly fail
2 parents 0518b83 + e206a8d commit 92976e5

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/nightlybuild.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2.3.4
1818

19+
- name: Set Up Variables
20+
run: echo "action_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_ENV
21+
1922
- name: Restore Nuget Packages
2023
run: dotnet restore FileProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
2124

@@ -54,5 +57,14 @@ jobs:
5457
if: ${{ failure() }}
5558
with:
5659
name: tracelogs
57-
path: /home/txnproc/trace/
60+
path: /home/txnproc/trace/
61+
62+
- uses: nashmaniac/create-issue-action@v1.1
63+
if: ${{ failure() }}
64+
name: Create an issue on build failure
65+
with:
66+
title: Investigate Nightly Build Failure
67+
token: ${{secrets.GITHUB_TOKEN}}
68+
labels: nightlybuild
69+
body: Url is ${{env.action_url}}
5870

0 commit comments

Comments
 (0)