Skip to content

Merge pull request #26 from tcouch/main #33

Merge pull request #26 from tcouch/main

Merge pull request #26 from tcouch/main #33

Workflow file for this run

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