Update template #972
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 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 }} |