Skip to content

Commit 4d23a7f

Browse files
committed
add parameter to allow forcing an extraction even if no changes to licenses
1 parent 3482960 commit 4d23a7f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/fetch-licenses.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Fetch Licenses
22

33
on:
4-
workflow_dispatch: # Allows manual triggering of the workflow
4+
workflow_dispatch:
5+
inputs:
6+
force_run:
7+
description: 'Force run license extraction'
8+
required: false
9+
default: 'false'
510
schedule:
611
- cron: '0 0 * * *' # Runs at midnight ET
712
push:
@@ -30,6 +35,7 @@ jobs:
3035
cp spdx-license-list-data/json/exceptions.json cmd/exceptions.json
3136
3237
- name: Check for changes
38+
if: ${{ github.event.inputs.force_run == 'false' }}
3339
run: |
3440
git diff --exit-code -- cmd/licenses.json cmd/exceptions.json || exit 0
3541

0 commit comments

Comments
 (0)