From 1a7d896174240fb426664f2607887ba3e2bf0a58 Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Mon, 2 Jun 2025 11:18:29 +0200 Subject: [PATCH] Test deloy status trigger --- .github/workflows/ci-test.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) 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