|
1 | 1 | name: udd-update-dependencies
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - workflow_dispatch: |
5 |
| - schedule: |
6 |
| - - cron: "42 19 * * *" |
| 4 | + workflow_dispatch: |
| 5 | + schedule: |
| 6 | + - cron: "42 19 * * *" |
7 | 7 |
|
8 | 8 | 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' '*.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 }} |
| 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 }} |
0 commit comments