Skip to content

Commit 17a61e1

Browse files
authored
Merge pull request #47 from ocefpaf/gh-actions
check gh-page build status
2 parents 3708d2f + 2678d71 commit 17a61e1

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: GH-Pages Status
2+
on:
3+
page_build
4+
5+
jobs:
6+
see-page-build-payload:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: check status
10+
run: |
11+
import os
12+
status, errormsg = os.getenv('STATUS'), os.getenv('ERROR')
13+
assert status == 'built', 'There was an error building the page on GitHub pages.\n\nStatus: {}\n\nError messsage: {}'.format(status, errormsg)
14+
shell: python
15+
env:
16+
STATUS: ${{ github.event.build.status }}
17+
ERROR: ${{ github.event.build.error.message }}

.github/workflows/jekyll-diff.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Jekyll diff
2+
on: pull_request
3+
4+
jobs:
5+
diff-site:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: David-Byrne/jekyll-diff-action@v1.1.0
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)