Skip to content

Commit

Permalink
feat: healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Oct 25, 2023
1 parent 075a7e1 commit 8ece8a7
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/developer-portal-healthckeck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,28 @@ name: Healthcheck
on: push

jobs:
create-pr:
uses: shopware/developer-portal/.github/workflows/self-trigger.yml@DX-healthcheck
with:
branch: ${{ github.ref_name }}
repository: ${{ github.repository }}
secrets:
access_token: ${{ secrets.DEVELOPER_PORTAL_WORKFLOW_TOKEN }}
# trigger-healthckeck:
# uses: shopware/developer-portal/.github/workflows/self-trigger.yml@DX-healthcheck
# with:
# branch: ${{ github.ref_name }}
# repository: ${{ github.repository }}
# secrets:
# access_token: ${{ secrets.DEVELOPER_PORTAL_WORKFLOW_TOKEN }}
trigger-healthcheck:
runs-on: ubuntu-latest
steps:
- name: Set default status to "pending"
run: echo "::set-output name=status::pending"

- name: Trigger DevHub healthcheck
uses: octokit/[email protected]
with:
route: POST /repos/:owner/:repo/actions/workflows/:workflow_id/dispatches
owner: shopware
repo: developer-portal
workflow_id: external-healthcheck.yml
ref: DX-healthcheck
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEV_HUB_BRANCH: ${{ github.ref_name }}
DEV_HUB_REPO: ${{ github.repository }}

0 comments on commit 8ece8a7

Please sign in to comment.