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 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
+ - uses : actions/github-script@v6
37
+ if : failure()
38
+ with :
39
+ github-token : ${{secrets.GITHUB_TOKEN}}
40
+ script : |
41
+ 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";
42
+ github.issues.create({
43
+ owner: context.repo.owner,
44
+ repo: context.repo.repo,
45
+ title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ",
46
+ body: body
47
+ });
36
48
37
49
dockerBuildPush :
38
50
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments