File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 35
35
run : dotnet build --no-restore src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj
36
36
- name : Test
37
37
run : dotnet test --no-build --verbosity normal src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj
38
+ - uses : actions/github-script@v6
39
+ if : failure()
40
+ with :
41
+ github-token : ${{secrets.GITHUB_TOKEN}}
42
+ script : |
43
+ 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";
44
+ github.issues.create({
45
+ owner: context.repo.owner,
46
+ repo: context.repo.repo,
47
+ title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ",
48
+ body: body
49
+ });
38
50
39
51
dockerBuildPush :
40
52
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments