Skip to content

Commit

Permalink
Add udd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tai2 committed Oct 22, 2023
1 parent e56bd95 commit 3fec298
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/udd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: udd-update-dependencies

on:
workflow_dispatch:
schedule:
- cron: "42 19 * * *"

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: 1.35.2
- name: Update dependencies
run: |
deno run -A https://deno.land/x/udd/main.ts src/deps/*.ts src/deps/std/*.ts
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
id: pr
with:
commit-message: "Update dependencies"
title: Update dependencies
body: >
Dependencies updated by [udd](https://github.com/hayd/deno-udd).
branch: deno-dependency-updates
author: GitHub <noreply@github.com>
delete-branch: true
- name: Retrieve commit sha
id: commit
run: |
echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Set commit status with pending
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: "Basic tests"
state: "pending"
sha: ${{ steps.commit.outputs.sha }}
- name: Basic tests
id: test
continue-on-error: true
run: |
deno task test
- name: Set commit status with outcome
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: "Basic tests"
description: "To run other CI actions close/reopen this PR"
state: ${{ steps.test.outcome }}
sha: ${{ steps.commit.outputs.sha }}

0 comments on commit 3fec298

Please sign in to comment.