generated from skanehira/denops-template.vim
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.42 KB
/
uud.yaml
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
51
52
53
54
55
name: Update
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
udd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: "1.x"
- name: Update dependencies
run: |
make deps > ../output.txt
env:
NO_COLOR: 1
- name: Read ../output.txt
id: log
uses: juliangruber/read-file-action@v1
with:
path: ../output.txt
- name: Diff check
id: diff
run: |
echo "::set-output name=content::$(git diff --name-only | grep ts)"
- name: Commit changes
if: ${{ steps.diff.outputs.content != '' }}
run: |
git config user.name '${{ github.actor }}'
git config user.email '${{ github.actor }}@users.noreply.github.com'
git commit -a -F- <<EOM
:package: Update Deno dependencies
Update dependencies by udd:
${{ steps.log.outputs.content }}
EOM
- uses: peter-evans/create-pull-request@v3
if: ${{ steps.diff.outputs.content != '' }}
with:
title: ":package: Update Deno dependencies"
body: |
The output of `make deps` is
```
${{ steps.log.outputs.content }}
```
labels: automation
branch: automation/update-dependencies
delete-branch: true