From e452ed73cfd926214d13c5e3bbe0093b494c8649 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 16 Mar 2024 15:27:53 +0100 Subject: [PATCH] fixed. --- .github/workflows/backend-tests.yml | 2 +- .github/workflows/frontend-tests.yml | 2 +- .github/workflows/npmpublish.yml | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 0edaaac..0f41cb6 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -1,4 +1,4 @@ -name: "Backend tests" +name: Backend tests # any branch is useful for testing before a PR is submitted on: [push, pull_request] diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 8543a49..c7950c2 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -1,6 +1,6 @@ # Publicly credit Sauce Labs because they generously support open source # projects. -name: "Frontend Tests" +name: Frontend Tests on: [push] diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 6a0e979..a95e293 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -5,9 +5,7 @@ name: Node.js Package on: workflow_run: - workflows: - - "Frontend Tests" - - "Backend Tests" + workflows: [Frontend Tests, Backend Tests] types: - completed branches: @@ -15,9 +13,8 @@ on: - master jobs: - publish-npm: - if: github.event_name == 'push' + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: - name: Check out Etherpad core