Skip to content

Commit

Permalink
ci: Add option to force to build always
Browse files Browse the repository at this point in the history
  • Loading branch information
jontze committed Jun 10, 2024
1 parent 595df9a commit 4e21cb9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@ name: Deploy Example App

on:
workflow_dispatch:
inputs:
force:
description: 'Force deploy'
required: false
default: false
type: boolean
workflow_call:
inputs:
force:
description: 'Force deploy'
required: false
default: false
type: boolean

env:
MAIN_BRANCH_NAME: 'main'
Expand All @@ -28,7 +40,11 @@ jobs:
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Deploy
- name: Build (always)
if: inputs.force == 'true'
run: npx nx run-many --target=build --all --parallel
- name: Build (if affected)
if: inputs.force == 'false'
run: npx nx affected -t build
- name: Check if folder exists and set output
id: dist-check
Expand Down

0 comments on commit 4e21cb9

Please sign in to comment.