Skip to content

Commit 5b25a61

Browse files
authored
Merge pull request #256 from hasundue/ci-migrate-molt-action
☕ Migrate `Update` workflow to `molt-action`
2 parents c8f7466 + b4237d1 commit 5b25a61

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

.github/workflows/update.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: denoland/setup-deno@v1.1.4
13+
- uses: hasundue/molt-action@v1
1414
with:
15-
deno-version: 1.x
16-
- name: Configure Git
17-
run: |
18-
git config user.name github-actions[bot]
19-
git config user.email github-actions[bot]@users.noreply.github.com
20-
- name: Update dependencies and commit changes
21-
run: deno task -q update:commit --summary ../title.txt --report ../body.md
22-
- name: Check result
23-
id: result
24-
uses: andstor/file-existence-action@v2
25-
with:
26-
files: ../title.txt, ../body.md
27-
- name: Read title.txt
28-
id: title
29-
if: steps.result.outputs.files_exists == 'true'
30-
uses: juliangruber/read-file-action@v1
31-
with:
32-
path: ../title.txt
33-
- name: Read body.md
34-
id: body
35-
if: steps.result.outputs.files_exists == 'true'
36-
uses: juliangruber/read-file-action@v1
37-
with:
38-
path: ../body.md
39-
- name: Create a pull request
40-
if: steps.result.outputs.files_exists == 'true'
41-
uses: peter-evans/create-pull-request@v6
42-
with:
43-
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4415
branch: automation/update-dependencies
45-
title: ${{ steps.title.outputs.content }}
46-
body: ${{ steps.body.outputs.content }}
4716
labels: automation
48-
delete-branch: true
17+
token: ${{ secrets.PA_TOKEN }}

0 commit comments

Comments
 (0)