Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into cansavvy/time
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Mar 15, 2024
2 parents cc3f1d5 + 2c78257 commit bc0568c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check spelling
id: check_spelling
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check URLs
id: check_urls
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check quiz formatting
id: quiz_format
Expand Down
39 changes: 36 additions & 3 deletions .github/workflows/report-maker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ on:
type: string
default: ${GITHUB_REF#refs/heads/}
jobs:
error-check:
status-update:
runs-on: ubuntu-latest
container:
image: jhudsl/base_ottr:main

steps:
- name: Declare report name
Expand Down Expand Up @@ -65,6 +63,41 @@ jobs:
_Comment updated at ${{ steps.build-components.outputs.time }} with changes from ${{ steps.build-components.outputs.commit_id }}_
edit-mode: replace

error-check:
runs-on: ubuntu-latest
container:
image: jhudsl/base_ottr:main

steps:
- name: Declare report name
id: setup
run: |
if ${{ contains(inputs.check_type, 'spelling') }} ;then
echo "error_name=spelling errors" >> $GITHUB_OUTPUT
echo "ignore_file=resources/dictionary.txt" >> $GITHUB_OUTPUT
elif ${{ contains(inputs.check_type, 'urls') }} ;then
echo "error_name=broken urls" >> $GITHUB_OUTPUT
echo "ignore_file=resources/ignore-urls.txt" >> $GITHUB_OUTPUT
elif ${{ contains(inputs.check_type, 'quiz_format') }} ;then
echo "error_name=quiz formatting errors" >> $GITHUB_OUTPUT
fi
- name: Build components of the spell check comment
id: build-components
run: |
branch_name='preview-${{ github.event.pull_request.number }}'
echo "time=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "commit_id=$GITHUB_SHA" >> $GITHUB_OUTPUT
shell: bash

- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: ${{ steps.setup.outputs.error_name }}

- name: Checkout
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit bc0568c

Please sign in to comment.