Upgrade dependencies #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upgrade dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 10 * * WED" | |
permissions: | |
contents: write | |
deployments: read | |
pull-requests: write | |
statuses: write | |
jobs: | |
upgrade: | |
name: Upgrade dependencies | |
runs-on: ubuntu-latest | |
continue-on-error: true # we want the PR to popup even if sth goes wrong | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | |
- name: Use Node.js | |
uses: ./.github/actions/setup-node | |
- name: Upgrade dependencies | |
run: | | |
yarn --frozen-lockfile --ignore-scripts | |
yarn talend-upgrade-deps --ignore-scripts | |
yarn talend-upgrade-deps --scope=@talend --latest --ignore-scripts | |
yarn talend-upgrade-deps --latest --dry > dependencies-latest.txt | |
git add dependencies-latest.txt | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f #v7.0.5 | |
with: | |
reviewers: "@Talend/frontend-admins" | |
commit-message: "chore: upgrade dependencies" | |
title: "chore: upgrade dependencies" | |
body: "Upgrade dependencies using `talend-scripts upgrade:deps`" | |
branch: ci/chore/upgrade-dependencies | |
token: ${{ secrets.GITHUB_TOKEN }} |