Merge branch 'main' of https://github.com/lgc-NB2Dev/workspace #4
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 | |
permissions: write-all | |
jobs: | |
lock: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Update submodules | |
run: git submodule update --remote --init --recursive | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v3 | |
- 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 commit -m "lock deps" -a || exit 0 | |
git push |