diff --git a/.github/workflows/deploy-latest.yml b/.github/workflows/deploy-latest.yml index 66a0d289fb4..5f934d45923 100644 --- a/.github/workflows/deploy-latest.yml +++ b/.github/workflows/deploy-latest.yml @@ -66,7 +66,6 @@ jobs: run: | npm install npm run build - npm run util:update-3rd-party-licenses git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" @@ -75,7 +74,6 @@ jobs: # The "|| true" prevents failure if there are no changes git add package-lock.json || true - git add **/THIRD-PARTY-LICENSES.md || true # The release-please PR only updates when there are new deployable # commits, e.g., fixes, features, or breaking changes. This is fine diff --git a/.github/workflows/schedule-updates.yml b/.github/workflows/schedule-updates.yml index 04ebda2f988..94d8924b0cf 100644 --- a/.github/workflows/schedule-updates.yml +++ b/.github/workflows/schedule-updates.yml @@ -58,3 +58,29 @@ jobs: body: "This PR was automatically generated by the update-browserslist-db GitHub action" token: ${{ secrets.ADMIN_TOKEN }} labels: "chore,skip visual snapshots" + + update-licenses: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: package.json + cache: npm + - name: Update 3rd party licenses + run: | + npm install + npm run util:update-3rd-party-licenses + - name: Commit and create pull request + uses: peter-evans/create-pull-request@v7 + with: + base: dev + branch: ci/update-3rd-party-licenses + delete-branch: true + commit-message: "docs: update 3rd party licenses" + title: "docs: update 3rd party licenses" + body: "This PR was automatically generated by the update-licenses GitHub action" + token: ${{ secrets.ADMIN_TOKEN }} + labels: "docs,skip visual snapshots"