Update #710
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
udd: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: "1.x" | |
- name: Update dependencies | |
run: | | |
deno task upgrade > ../output.txt | |
env: | |
NO_COLOR: 1 | |
- name: Read ../output.txt | |
id: log | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ../output.txt | |
- name: Commit changes | |
run: | | |
git config user.name '${{ github.actor }}' | |
git config user.email '${{ github.actor }}@users.noreply.github.com' | |
git commit -a -F- <<EOM | |
:package: Update Deno dependencies | |
Update dependencies by udd: | |
${{ steps.log.outputs.content }} | |
EOM | |
- uses: peter-evans/create-pull-request@v3 | |
with: | |
title: ":package: Update Deno dependencies" | |
body: | | |
The output of `make update` is | |
``` | |
${{ steps.log.outputs.content }} | |
``` | |
labels: automation | |
branch: automation/update-dependencies | |
delete-branch: true | |
token: "${{ secrets.PA_TOKEN }}" |