build and test renovate/dotnet.reproduciblebuilds-1.x #7
Workflow file for this run
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: 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 |