forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.37 KB
/
update-dependencies.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
46
47
48
49
50
name: Update Dependencies
# This action can be run on-demand against a branch.
# It attempts to update dotnet & npm dependencies, and commits and pushes changes if there are any.
on:
workflow_dispatch:
jobs:
main:
name: Update Dependencies
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install Tools
run: |
npm install -g npm-check-updates
dotnet tool install -g dotnet-outdated-tool
- name: Update Dependencies
continue-on-error: true
run: ./scripts/update_dependencies.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update-dependencies
delete-branch: true
title: |
Update NPM & Dotnet Dependencies
commit-message: |
Update NPM & Dotnet Dependencies
labels: dependencies
draft: false