Skip to content

Commit 2d44e53

Browse files
committed
升级
1 parent fdbdb2e commit 2d44e53

File tree

3 files changed

+52
-51
lines changed

3 files changed

+52
-51
lines changed

.github/workflows/udd.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
name: udd-update-dependencies
22

33
on:
4-
workflow_dispatch:
5-
schedule:
6-
- cron: "42 19 * * *"
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "42 19 * * *"
77

88
jobs:
9-
update-dependencies:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v3
13-
- uses: denoland/setup-deno@v1
14-
with:
15-
deno-version: v1.25.0
16-
- name: Update dependencies
17-
run: |
18-
deno run -A https://deno.land/x/udd/main.ts deps.ts *.ts '*/*.ts'
19-
- name: Create Pull Request
20-
uses: peter-evans/create-pull-request@v3
21-
id: pr
22-
with:
23-
commit-message: "Update dependencies"
24-
title: Update dependencies
25-
body: >
26-
Dependencies updated by [udd](https://github.com/hayd/deno-udd).
27-
branch: deno-dependency-updates
28-
author: GitHub <[email protected]>
29-
delete-branch: true
30-
- name: Retrieve commit sha
31-
id: commit
32-
run: |
33-
echo "::set-output name=sha::$(git rev-parse HEAD)"
34-
- name: Set commit status with pending
35-
uses: Sibz/github-status-action@v1
36-
with:
37-
authToken: ${{ secrets.GITHUB_TOKEN }}
38-
context: "Basic tests"
39-
state: "pending"
40-
sha: ${{ steps.commit.outputs.sha }}
41-
- name: Basic tests
42-
id: test
43-
continue-on-error: true
44-
run: |
45-
deno task test
46-
- name: Set commit status with outcome
47-
uses: Sibz/github-status-action@v1
48-
with:
49-
authToken: ${{ secrets.GITHUB_TOKEN }}
50-
context: "Basic tests"
51-
description: "To run other CI actions close/reopen this PR"
52-
state: ${{ steps.test.outcome }}
53-
sha: ${{ steps.commit.outputs.sha }}
9+
update-dependencies:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: denoland/setup-deno@v1
14+
with:
15+
deno-version: v1.25.0
16+
- name: Update dependencies
17+
run: |
18+
deno run -A https://deno.land/x/udd/main.ts deps.ts *.ts '*/*.ts' '*.json'
19+
- name: Create Pull Request
20+
uses: peter-evans/create-pull-request@v3
21+
id: pr
22+
with:
23+
commit-message: "Update dependencies"
24+
title: Update dependencies
25+
body: >
26+
Dependencies updated by [udd](https://github.com/hayd/deno-udd).
27+
branch: deno-dependency-updates
28+
author: GitHub <[email protected]>
29+
delete-branch: true
30+
- name: Retrieve commit sha
31+
id: commit
32+
run: |
33+
echo "::set-output name=sha::$(git rev-parse HEAD)"
34+
- name: Set commit status with pending
35+
uses: Sibz/github-status-action@v1
36+
with:
37+
authToken: ${{ secrets.GITHUB_TOKEN }}
38+
context: "Basic tests"
39+
state: "pending"
40+
sha: ${{ steps.commit.outputs.sha }}
41+
- name: Basic tests
42+
id: test
43+
continue-on-error: true
44+
run: |
45+
deno task test
46+
- name: Set commit status with outcome
47+
uses: Sibz/github-status-action@v1
48+
with:
49+
authToken: ${{ secrets.GITHUB_TOKEN }}
50+
context: "Basic tests"
51+
description: "To run other CI actions close/reopen this PR"
52+
state: ${{ steps.test.outcome }}
53+
sha: ${{ steps.commit.outputs.sha }}

deno.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"importMap": "import_map.json",
1313
"tasks": {
14-
"udd": " deno run -A https://deno.land/x/udd/main.ts deps.ts '*.ts' '*/*.ts'",
15-
"install-udd": "deno install -A -f -n udd https://deno.land/x/[email protected].3/main.ts",
14+
"udd": " deno run -A https://deno.land/x/udd/main.ts '*.json' deps.ts '*.ts' '*/*.ts'",
15+
"install-udd": "deno install -A -f -n udd https://deno.land/x/[email protected].5/main.ts",
1616
"fmt": " deno fmt --config deno.json",
1717
"test": "deno test --parallel --unstable -A --config deno.json",
1818
"lint": "deno lint --config deno.json",

import_map.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"imports": {
3-
"leetcode-class": "https://cdn.skypack.dev/[email protected]?dts"
3+
"leetcode-class": "https://cdn.skypack.dev/[email protected]?dts",
4+
"asserts": "https://deno.land/[email protected]/testing/asserts.ts"
45
}
56
}

0 commit comments

Comments
 (0)