-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from OliverCullimore/100-wiki
Generate Councils.md from input.json & fix some integration tests
- Loading branch information
Showing
5 changed files
with
292 additions
and
98 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,34 @@ on: | |
|
||
jobs: | ||
deploy-wiki: | ||
# Only run on main branch push (e.g. after pull request merge). | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
environment: wiki | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: '1.2.1' | ||
|
||
- name: Install | ||
run: make install | ||
|
||
- name: Update Councils.md from input.json | ||
run: make update-wiki | ||
|
||
- name: Commit and Push Wiki changes | ||
run: | | ||
git config --global user.name "Wiki GitHub Action" | ||
git config --global user.email "[email protected]" | ||
git add wiki | ||
git commit -m "Update Councils.md from input.json" | ||
git push | ||
- name: Deploy Wiki Changes | ||
uses: Andrew-Chen-Wang/github-wiki-action@v3 | ||
|
@@ -28,3 +52,4 @@ jobs: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_MAIL: ${{ secrets.YOUR_EMAIL }} | ||
GH_NAME: ${{ github.repository_owner }} | ||
EXCLUDED_FILES: "generate_wiki.py" |
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
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
Oops, something went wrong.