Skip to content

Commit bf6add2

Browse files
author
Raffaele Marcello
committed
Refactor Azure Bicep deployment workflow to include environment selection and update container registry SKU
1 parent eba1370 commit bf6add2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/dotnet-deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ 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+
- 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+
});
3648
3749
dockerBuildPush:
3850
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)