Skip to content

build and test renovate/mstest-monorepo #8

build and test renovate/mstest-monorepo

build and test renovate/mstest-monorepo #8

name: update package lock
run-name: build and test ${{ github.head_ref }}
on: [pull_request]
env:
RestoreLockedMode: false
jobs:
update-package-lock:
if: ${{ startsWith(github.head_ref, 'renovate/') }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Update package lock files
run: |
git fetch
git switch $GITHUB_HEAD_REF
dotnet restore --force-evaluate
- name: Update branch
run: |
git config --global user.email "[email protected]"
git config --global user.name "renovatebot"
git add -u .
git commit -m "Update package lock files"
git push