From 69356171396b9dbf3887e7e77dd6a69cbfc1b38c Mon Sep 17 00:00:00 2001 From: Roberto Arocha Date: Thu, 20 May 2021 18:43:32 +0200 Subject: [PATCH 1/2] fix #1 --- apis/poi/web/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/poi/web/Startup.cs b/apis/poi/web/Startup.cs index cb9aab5..db26fd3 100755 --- a/apis/poi/web/Startup.cs +++ b/apis/poi/web/Startup.cs @@ -24,7 +24,7 @@ public Startup(IConfiguration configuration) { Configuration = configuration; } -HELLO + public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. From a5e65aa984edb1aa4ad9e4b649ef66cdc8b06ef8 Mon Sep 17 00:00:00 2001 From: Roberto Arocha Date: Thu, 20 May 2021 19:07:04 +0200 Subject: [PATCH 2/2] Update POI.yml --- .github/workflows/POI.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/POI.yml b/.github/workflows/POI.yml index 9bab3eb..3978303 100644 --- a/.github/workflows/POI.yml +++ b/.github/workflows/POI.yml @@ -27,3 +27,16 @@ jobs: - name: Test run: dotnet test --no-build --verbosity normal working-directory: ${{env.working-directory}} + + - uses: actions/github-script@0.9.0 + if: failure() + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + let body = "${{ env.build_name }} Worflow 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"; + github.issues.create({ + owner: context.repo.owner, + repo: context.repo.repo, + title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ", + body: body + });