mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-11 12:25:26 -05:00
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:
parent
d50327a377
commit
8b30407722
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build_action.yaml
vendored
3
.github/workflows/build_action.yaml
vendored
|
|
@ -5,13 +5,14 @@ on: [workflow_call]
|
||||||
jobs:
|
jobs:
|
||||||
build-action:
|
build-action:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!startsWith(github.ref, 'refs/heads/release')"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- name: Build action (if not already built)
|
- name: Build action (if not already built)
|
||||||
|
if: "!startsWith(github.ref, 'refs/heads/release')"
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Push build into cache
|
- name: Push build into cache
|
||||||
|
if: "!startsWith(github.ref, 'refs/heads/release')"
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue