Skip to content

Update dotnet and npm lockfiles #226

Update dotnet and npm lockfiles

Update dotnet and npm lockfiles #226

# 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>