Skip to content

build and test renovate/shouldly-4.x #11

build and test renovate/shouldly-4.x

build and test renovate/shouldly-4.x #11

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 .
set +e # Disable errors for grep
git status | grep modified
set -e # Enable errors
if [ $? -eq 0 ]
then
git commit -m "Update package lock files"
git push
fi;