Skip to content

Commit caa867e

Browse files
authored
Create udd.yml
1 parent 590b357 commit caa867e

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/udd.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: udd-update-dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "42 19 * * *"
7+
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: 1.20.2
16+
- name: Update dependencies
17+
run: |
18+
deno run -A https://deno.land/x/udd/main.ts deps.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 test --allow-read --allow-write
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

Comments
 (0)