Skip to content

Commit

Permalink
tmp run on push to this PR’s branch
Browse files Browse the repository at this point in the history
action not running on push, not sure why

don’t use a input with the dispatch
  • Loading branch information
elrayle committed Jun 3, 2024
1 parent 3d62a25 commit 6bc6e23
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/fetch-licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: Fetch Licenses

on:
workflow_dispatch:
inputs:
force_run:
description: 'Force run license extraction'
required: false
default: 'false'
# inputs:
# force_run:
# description: 'Force run license extraction'
# required: false
# default: 'false'
schedule:
- cron: '0 0 * * *' # Runs at midnight ET
push:
branches: [elr/update-licenses]

jobs:
fetch-licenses:
Expand All @@ -32,7 +34,6 @@ jobs:
cp spdx-license-list-data/json/exceptions.json cmd/exceptions.json
- name: Check for changes
if: ${{ github.event.inputs.force_run != 'true' }}
run: |
git diff --exit-code -- cmd/licenses.json cmd/exceptions.json || exit 0
Expand All @@ -52,7 +53,7 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "Update SPDX license files - $(date)"
title: "Update SPDX license files"
body: "The files in this PR are auto-generated by the [fetch-licenses](./.git/workflows/fetch-license.yaml) workflow. It updates SPDX licenses based on the latest released set in the [spdx/license-list-data](https://github.com/spdx/license-list-data) repository maintained by [SPDX](https://spdx.org/licenses/)."
branch: "auto-update-licenses"
base: "main"

0 comments on commit 6bc6e23

Please sign in to comment.