mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-03 01:51:37 +00:00
ci: Add deployment status check workflow (#125)
This commit is contained in:
1 parent
79cc24d126
commit
b81e21a3dc
1 file changed
+14
@@ -0,0 +1,14 @@
|
|||||||
|
name: Check Pages Status
|
||||||
|
|
||||||
|
on: page_build
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pages-status-check:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- name: check status
|
||||||
|
run: |
|
||||||
|
status = '${{ github.event.build.status }}'
|
||||||
|
errormsg = '${{ github.event.build.error.message }}'
|
||||||
|
assert status == 'built', 'Status: {status}\nError: {errormsg}'.format(status, errormsg)
|
||||||
|
shell: python
|
||||||
Reference in new issue
Block a user