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 + }); 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.