Skip to content

Commit ddd8bd8

Browse files
committed
Refactor dotnet-deploy.yml to update image registry URL
1 parent 891047a commit ddd8bd8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/dotnet-deploy.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,20 @@ jobs:
3333
run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj
3434
- name: Test
3535
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+
3750
dockerBuildPush:
3851
runs-on: ubuntu-latest
3952
needs: build

0 commit comments

Comments
 (0)