From 8b3040772213b5a7de80ec033c51545390f09497 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 2 Dec 2022 17:48:57 +0000 Subject: [PATCH] ci: Do not skip build action job on `release` branch (#18) The dependent jobs will not run if the job is skipped: skip the steps instead. --- .github/workflows/build_action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_action.yaml b/.github/workflows/build_action.yaml index 4ad1684..fe175c8 100644 --- a/.github/workflows/build_action.yaml +++ b/.github/workflows/build_action.yaml @@ -5,13 +5,14 @@ on: [workflow_call] jobs: build-action: runs-on: ubuntu-latest - if: "!startsWith(github.ref, 'refs/heads/release')" steps: - uses: actions/checkout@v2 - run: npm install - name: Build action (if not already built) + if: "!startsWith(github.ref, 'refs/heads/release')" run: npm run build - name: Push build into cache + if: "!startsWith(github.ref, 'refs/heads/release')" uses: actions/cache@v3 with: path: dist