diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index ffdb4ac1..4a8ad3a9 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -16,6 +16,9 @@ jobs: steps: - uses: actions/checkout@v2.3.4 + - name: Set Up Variables + run: echo "action_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_ENV + - name: Restore Nuget Packages run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -48,3 +51,12 @@ jobs: - name: Run Integration Tests run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" + + - uses: nashmaniac/create-issue-action@v1.1 + if: ${{ failure() }} + name: Create an issue on build failure + with: + title: Investigate Nightly Build Failure + token: ${{secrets.GITHUB_TOKEN}} + labels: nightlybuild + body: Url is ${{env.action_url}}