Lock workspace dependencies #380
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: Lock workspace dependencies | |
on: | |
push: | |
schedule: | |
- cron: '0 8 * * *' | |
permissions: write-all | |
jobs: | |
lock: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
# with: | |
# submodules: recursive | |
- name: Update submodules | |
run: |- | |
git submodule update --remote --init --recursive | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
cache: true | |
- name: Lock Deps | |
run: pdm lock -G:all | |
- name: Commit changes | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email github-actions[bot]@users.noreply.github.com | |
git add . | |
git commit -m "lock deps" || exit 0 | |
git push |