-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1002 Bytes
/
update-func.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
name: '{Reusable} Update Cloud Functions dependencies'
on:
workflow_call:
secrets:
GH_PAT:
required: true
defaults:
run:
working-directory: functions
jobs:
update-functions:
name: Update Cloud Functions dependencies
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Checkout code
uses: actions/checkout@v4
- name: npm update
run: |
npx npm-check-updates -u -x eslint,firebase-functions
npm install -f
npm update
npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: '${{ secrets.GH_PAT }}'
add-paths: 'functions/package*.json'
commit-message: npm update (functions)
title: npm update (functions)
branch: update-functions
author: 'github-actions <[email protected]>'