Skip to content

Commit

Permalink
feat: another pending approach
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Oct 26, 2023
1 parent e636338 commit 644b363
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/developer-portal-healthckeck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 644b363

Please sign in to comment.