-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.09 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }})"