Skip to content

Commit 4089da1

Browse files
committed
chore: add ignore-cache input to workflow_dispatch for forced builds
1 parent 148660c commit 4089da1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: "[builder] CI for releases"
33
on:
44
repository_dispatch:
55
types: build
6-
workflow_dispatch: ~
6+
workflow_dispatch:
7+
inputs:
8+
ignore-cache:
9+
description: 'Ignore cache and force build (skip hash check)'
10+
required: false
11+
default: false
12+
type: boolean
713
schedule:
814
- cron: "0 0 * * *"
915
push:
@@ -59,7 +65,7 @@ jobs:
5965
6066
build:
6167
needs: check
62-
if: needs.check.outputs.cache-hit != 'true'
68+
if: needs.check.outputs.cache-hit != 'true' || inputs.ignore-cache
6369
runs-on: ubuntu-latest
6470
permissions:
6571
id-token: write

0 commit comments

Comments
 (0)