-
Notifications
You must be signed in to change notification settings - Fork 756
40 lines (33 loc) · 1.23 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
# 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>