WIP: Create PR on main website when SPEC repo is updated #1
Workflow file for this run
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: Update main website | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.SPEC_UPDATE }} | ||
repository: | ||
scientific-python/scientific-python.org | ||
- name: Update SPECs submodule | ||
run: | | ||
git submodule update --init | ||
cd content/specs | ||
git pull origin main | ||
git lg | ||
cd ../.. | ||
git status | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.SPEC_UPDATE }} | ||
delete-branch: true | ||
- | ||