Skip to content

Commit

Permalink
Merge pull request #19 from UCLH-Foundry/jekyllify_staging
Browse files Browse the repository at this point in the history
Jekyllify staging
  • Loading branch information
tcouch authored Jan 4, 2024
2 parents 38b9b70 + afb3a74 commit 73f2d02
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,6 @@ concurrency:
cancel-in-progress: false

jobs:
jekyllify:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run jekyllify script
run: python ./_utils/jekyllify.py
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto generate Jekyll front matter for projects
# Build job
build:
runs-on: ubuntu-latest
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/jekyllify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
permissions:
contents: write
steps:
- name: Checkout code repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run jekyllify script
run: python ./_utils/jekyllify.py
- name: Create PR to main
uses: peter-evans/create-pull-request@v5
with:
commit-message: Jekyllifying project folder content
branch: jekyllified_${{ github.ref_name }}
delete-branch: true
base: main

2 changes: 0 additions & 2 deletions .github/workflows/project_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Check project
run-name: ${{ github.actor }} project jekyllification
on:
pull_request:
branches:
- main # only run on PRs to main branch
paths:
- '_projects/**' # only run when PR makes changes to _projects folder contents
jobs:
Expand Down

0 comments on commit 73f2d02

Please sign in to comment.