From 6bc6e231cc12174c1ffd201b2c1a7d004e1a8930 Mon Sep 17 00:00:00 2001 From: "E. Lynette Rayle" Date: Mon, 3 Jun 2024 14:48:27 -0400 Subject: [PATCH] =?UTF-8?q?tmp=20run=20on=20push=20to=20this=20PR=E2=80=99?= =?UTF-8?q?s=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit action not running on push, not sure why don’t use a input with the dispatch --- .github/workflows/fetch-licenses.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/fetch-licenses.yaml b/.github/workflows/fetch-licenses.yaml index 1295797..a8af52c 100644 --- a/.github/workflows/fetch-licenses.yaml +++ b/.github/workflows/fetch-licenses.yaml @@ -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: @@ -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 @@ -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"