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"