From 644b36394c8ebad19a3633c71b7af4c9c79321a6 Mon Sep 17 00:00:00 2001 From: Bojan Rajh Date: Thu, 26 Oct 2023 11:02:07 +0200 Subject: [PATCH] feat: another pending approach --- .../workflows/developer-portal-healthckeck.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/developer-portal-healthckeck.yml b/.github/workflows/developer-portal-healthckeck.yml index 32fb3ce731..cee662cfab 100644 --- a/.github/workflows/developer-portal-healthckeck.yml +++ b/.github/workflows/developer-portal-healthckeck.yml @@ -6,10 +6,21 @@ jobs: trigger-healthckeck: runs-on: ubuntu-latest steps: - - uses: ouzi-dev/commit-status-updater@v2 - with: - status: "pending" +# - uses: ouzi-dev/commit-status-updater@v2 +# with: +# status: "pending" + + - name: Set Status to Pending + run: | + PR_URL=$(jq -r .pull_request.url "$GITHUB_EVENT_PATH") + SHA=$(jq -r .pull_request.head.sha "$GITHUB_EVENT_PATH") + curl -X POST \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + "$PR_URL/statuses/$SHA" \ + -d '{"state": "pending", "description": "Workflow is in progress", "context": "ci/pending-status"}' + # uses: shopware/developer-portal/.github/workflows/self-trigger.yml@DX-healthcheck # with: # branch: ${{ github.ref_name }}