-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (34 loc) · 1.07 KB
/
jekyllify.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
34
35
36
37
name: Jekyllify projects
on:
push:
branches: ["staging"]
paths:
- '_projects/**' # only run when PR makes changes to _projects folder contents
workflow_dispatch:
jobs:
jekyllify:
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run jekyllify script
run: python ./_utils/jekyllify.py
- name: Set jekyllify branch name
id: vars
run: |
branch_name="jekyllify-patches/${{ github.head_ref }}"
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Create PR to main
uses: peter-evans/create-pull-request@v5
with:
commit-message: Jekyllify action fixes
title: Fixes by Jekyllify action
body: This is an auto-generated PR with fixes by _utils/jekyllify.py
branch: ${{ steps.vars.outputs.branch-name }}
base: main