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.
This commit is contained in:
Samuel Ryan 2022-12-02 17:48:57 +00:00 committed by GitHub
parent d50327a377
commit 8b30407722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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