File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 33
33
run : dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj
34
34
- name : Test
35
35
run : dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj
36
-
36
+
37
+ - uses : actions/github-script@v6
38
+ if : failure()
39
+ with :
40
+ github-token : ${{secrets.GITHUB_TOKEN}}
41
+ script : |
42
+ let body = "${{ env.build_name }} Workflow Failure \n Build Number: ${{ github.run_number }} \n Build Log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \n SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) \n";
43
+ github.issues.create({
44
+ owner: context.repo.owner,
45
+ repo: context.repo.repo,
46
+ title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ",
47
+ body: body
48
+ });
49
+
37
50
dockerBuildPush :
38
51
runs-on : ubuntu-latest
39
52
needs : build
You can’t perform that action at this time.
0 commit comments