-
Notifications
You must be signed in to change notification settings - Fork 638
46 lines (40 loc) · 1.11 KB
/
bump.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
name: Bump Dependencies
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
bump:
if: github.repository == 'FredrikNoren/ungit'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
- run: |
body="$(npm run bumpdependencies)"
echo "$body"
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$body" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
id: bumpdependencies
- run: npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: Bump Dependencies
title: Bump Dependencies
body: |
```
${{ steps.bumpdependencies.outputs.body }}
```
labels: dependencies
branch: bumpdependencies