Merge pull request #71 from joachimtingvold/1pass-dynamic-folder-rdfx #30
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: Dynamic Folder Index CI | |
on: | |
push: | |
# Only trigger this on master branch | |
branches: [ main, master ] | |
paths: | |
# Only trigger this on changes to .rdfe and .rdfx files within the "Dynamic Folder" folder | |
- "Dynamic Folder/**.rdfe" | |
- "Dynamic Folder/**.rdfx" | |
# Allow us to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
update-index: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Run Rebuild Index Python Script | |
working-directory: ./Dynamic Folder | |
run: python3 rebuildindex.py | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3.10.1 | |
with: | |
commit-message: "[ci] Dynamic Folder Index updated" | |
title: "[ci] Dynamic Folder Index updated" | |
body: "The Dynamic Folder Index was updated automatically by CI" |