We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3708d2f commit 491ad62Copy full SHA for 491ad62
1 file changed
.github/workflows/docs.yml
@@ -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 }}
0 commit comments