diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index b1ff9f4a..add5c87c 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -2,20 +2,23 @@ name: ci-test # Trigger the workflow when: -on: - # A push occurs to one of the matched branches. - push: - branches: [master] - # Or when a pull request event occurs for a pull request against one of the - # matched branches. - pull_request: - branches: [master] +# on: +# A push occurs to one of the matched branches. +# push: +# branches: [master] +# Or when a pull request event occurs for a pull request against one of the +# matched branches. +# pull_request: +# branches: [master] + +on: deployment_status jobs: test: # NOTE: This name appears in GitHub's Checks API. name: test runs-on: ubuntu-latest + if: github.event.deployment_status.state == 'success' steps: - name: Checkout code uses: actions/checkout@v4 @@ -24,6 +27,8 @@ jobs: with: node-version: '20.x' cache: yarn + - name: Test deployment status trigger + run: echo "${{ github.event.deployment_status }}" - name: Install dependencies run: yarn install --frozen-lockfile - name: Install Playwright