Skip to content

Commit

Permalink
Put the colons back and add messages
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMoll committed Mar 18, 2024
1 parent a953952 commit af5cca7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/webcheck.yaml
Original file line number Diff line number Diff line change
@@ -10,8 +10,6 @@ on:
env:
WEBSITE_URL: "https://www.hacksoc.org/"

# TODO: would be good to catch various failures and present a more friendly message.

jobs:
webcheck:
runs-on: ubuntu-latest
@@ -24,8 +22,7 @@ jobs:
- name: Error message if cURL fails
if: failure()
# Hopefully displays a nicely formatted error
# TODO: turn this into a block with a "this might mean Runciman is offline"
run: echo "\u003a\u003aerror title=cURL\u003a\u003a${{ steps.curl.outputs.OUTPUT }}"
run: echo "::error title=cURL::${{ steps.curl.outputs.OUTPUT }}. This might mean that Runciman is offline"

- uses: actions/checkout@v4
with:
@@ -49,6 +46,5 @@ jobs:

- name: Error message if SHA mismatches
# Only run if this specific step failed.
# TODO: turn this into a block with a "this might mean xxx is broken"
if: failure() && steps.grep.conclusion == 'failure'
run: echo \u003a\u003error title=SHA mismatch\u003a\u003The commit SHA ${{steps.git_sha.outputs.SHA}} was not found in index.html!
run: echo ::error title=SHA mismatch::The commit SHA ${{steps.git_sha.outputs.SHA}} was not found in index.html. This means that the live website is out-of-date with the main branch.

0 comments on commit af5cca7

Please sign in to comment.