Skip to content

Update

Update #4

Workflow file for this run

name: Update
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- name: Configure Git
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
run: deno task cache
- name: Run Molt
run: deno task update:commit --summary title.txt --report body.md
- name: Check result
id: result
uses: andstor/file-existence-action@v2
with:
files: "title.txt, body.md"
- name: Push changes
if: steps.result.outputs.files_exists == 'true'
run: git push -f origin HEAD:build/update-dependencies
- name: Create Pull Request
if: steps.result.outputs.files_exists == 'true'
run: |
gh pr create --title "$(cat title.txt)" --body "$(cat body.txt)"
--head build/update-dependencies
env:
GH_TOKEN: ${{ github.token }}