Skip to content

Update dotnet and npm lockfiles #770

Update dotnet and npm lockfiles

Update dotnet and npm lockfiles #770

name: Update dotnet and npm 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 dotnet 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
- name: Restore npm dependencies
run: |
echo "Restoring npm dependencies for vscode-bicep and related projects"
& .\npm-install.bat
working-directory: src/vscode-bicep
- 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>