-
Notifications
You must be signed in to change notification settings - Fork 755
45 lines (37 loc) · 1.4 KB
/
lockfiles-command.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/[email protected]
- 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>