Skip to content

update

update #80

Workflow file for this run

name: update
on:
# Trigger once every week to check for updates
schedule:
- cron: "45 6 * * 3"
# Allow manually triggering this workflow
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update preview template
run: script/update-preview-template
- name: Create or update pull-request
id: create-pull-request
uses: peter-evans/create-pull-request@v6
with:
title: Update preview template πŸ’…
body: https://github.com/sindresorhus/github-markdown-css
commit-message: Update preview template πŸ’…
branch: actions/update-preview-template
delete-branch: true
labels: automated pull-request
- name: Print pull-request details
run: |
echo -n "Pull request ${{ steps.create-pull-request.outputs.pull-request-operation }}:"
echo -n " ${{ steps.create-pull-request.outputs.pull-request-url }}"
echo -n " (${{ steps.create-pull-request.outputs.pull-request-head-sha }})"