GH-Pages Status #6
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: GH-Pages Status | |
on: page_build | |
permissions: | |
actions: write | |
pull-requests: write | |
contents: write | |
jobs: | |
see-page-build-payload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check status | |
run: | | |
import os | |
status, errormsg = os.getenv('STATUS'), os.getenv('ERROR') | |
assert status == 'built', 'There was an error building the page on GitHub pages.\n\nStatus: {}\n\nError messsage: {}'.format(status, errormsg) | |
shell: python | |
env: | |
STATUS: ${{ github.event.build.status }} | |
ERROR: ${{ github.event.build.error.message }} |