diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index 3fd00a6..5b98bcb 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 TransactionProcessorACL.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -47,3 +50,12 @@ jobs: - name: Run Integration Tests run: dotnet test "TransactionProcessorACL.IntegrationTests\TransactionProcessorACL.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}}