Skip to content

Update template

Update template #925

name: Update template
on:
schedule:
- cron: '5 1 * * *' # every day at 01:05
workflow_dispatch:
jobs:
update:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: pip install cruft
- name: Update template
id: update
run: |
cruft update -y
echo "::set-output name=changes::$(git diff)"
- name: Create PR
if: ${{ steps.update.outputs.changes != '' }}
uses: peter-evans/create-pull-request@v6
with:
commit-message: update template
title: update template
token: ${{ github.token }}