Merge pull request #28 from tcouch/main #34
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: 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 | |