Update dotnet and npm lockfiles #777
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
# To run this, comment "/lockfiles" on the PR | |
name: Update lockfiles | |
on: | |
workflow_dispatch: | |
jobs: | |
lockfiles: | |
# dotnet restore for src/vs-bicep/BicepInVisualStudio.sln doesn't seem to work well on Linux | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # full history | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4.0.0 | |
- name: Restore dependencies | |
run: | | |
echo "Restoring dependencies for Bicep.sln" | |
dotnet restore --force-evaluate | |
echo "Restoring dependencies for BicepInVisualStudio.sln" | |
dotnet restore src/vs-bicep/BicepInVisualStudio.sln --force-evaluate | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update lockfiles | |
commit_user_name: ${{ github.actor }} | |
commit_user_email: ${{ github.actor }}@users.noreply.github.com | |
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> |