From 705daadcbf182b4ffe09577efecdd685189eedb2 Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:49:39 +0200 Subject: [PATCH 1/5] Empty commit ...1 From eaa1761bb93a1a27a833cffa60f4327cc7cde5b9 Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:49:41 +0200 Subject: [PATCH 2/5] Empty commit ...2 From 0b7fa1a2c0ec65a7bcaab8456df2bc09a83c071b Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:49:43 +0200 Subject: [PATCH 3/5] Empty commit ...3 From d9e4f208082ab90a20366ce16f01f8aca27eb61c Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:59:15 +0200 Subject: [PATCH 4/5] test --- .github/workflows/dotnet.yml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c0e8bd2705..10b3b4f917 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -38,15 +38,6 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - - name: Get merged pull request - uses: actions-ecosystem/action-get-merged-pull-request@v1 - id: get_merged_pull_request - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Print merged pull request - run: echo 'PR number = ${{steps.get_merged_pull_request.outputs.number}}' - - name: Setup PostgreSQL uses: ikalnytskyi/action-setup-postgres@v4 with: @@ -77,19 +68,6 @@ jobs: Write-Host "$(pwsh --version) is installed at $PSHOME" psql --version Write-Host "Using .NET SDK: $(dotnet --version)" - - name: Print messages - shell: pwsh - env: - MY_MSG: "Auto-generated documentation from ${{ github.event.pull_request.merged == true && github.event.pull_request.url || github.sha }}" - run: | - Write-Host "Message = $env:MY_MSG" - - name: Dump event object - shell: pwsh - env: - MY_JSON: "${{toJSON(github.event)}}" - run: | - Write-Host "Message = $env:MY_JSON" -# - name: Git checkout uses: actions/checkout@v3 - name: Restore tools @@ -281,6 +259,16 @@ jobs: run: | dotnet nuget add source --username 'json-api-dotnet' --password "$env:GITHUB_TOKEN" --store-password-in-clear-text --name 'github' 'https://nuget.pkg.github.com/json-api-dotnet/index.json' dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github' + - name: Find merged pull request + uses: actions-ecosystem/action-get-merged-pull-request@v1 + id: find_merged_pull_request + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + # TODO: Remove test + - name: Print merged pull request + run: | + echo 'PR number = ${{ steps.find_merged_pull_request.outputs.number }}' + echo 'SHA = ${{ github.sha }}' - name: Publish documentation #if: github.event_name == 'push' && github.ref == 'refs/heads/master' uses: peaceiris/actions-gh-pages@v3 @@ -291,7 +279,7 @@ jobs: #publish_branch: gh-pages publish_dir: ./documentation #commit_message: 'Auto-generated documentation from: ${{ github.event.head_commit.message }}' - full_commit_message: "Auto-generated documentation from ${{ github.event.pull_request.merged == true && github.event.pull_request.url || github.sha }}" + full_commit_message: "Auto-generated documentation from ${{ steps.find_merged_pull_request.outputs.number && format('#{0}', steps.find_merged_pull_request.outputs.number) || github.sha }}" - name: Publish to NuGet if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') From 2e56f198ceb659d7d61c7dc8804ea6b8bb244929 Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Sun, 17 Sep 2023 11:00:06 +0200 Subject: [PATCH 5/5] Change docs --- docs/home/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/home/index.html b/docs/home/index.html index 2c3e57849b..99a1c8163c 100644 --- a/docs/home/index.html +++ b/docs/home/index.html @@ -1,4 +1,4 @@ - +