Skip to content

Commit

Permalink
test link check workflow change
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreds committed Oct 22, 2024
1 parent aeeac8e commit 4bfaa55
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,43 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test_send_mail:
runs-on: ubuntu-latest
steps:
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.MAIL_HOST}}
server_port: ${{secrets.MAIL_PORT}}
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Failed linkcheck
to: [email protected]
from: FusionAuth GitHub Actions
body: Linkcheck failed.
check_links:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# linkcheck
- uses: actions/checkout@v4
- uses: filiph/[email protected]
with:
arguments: https://fusionauth.io/ --skip-file config/linkcheck/linkcheck-skip.txt --connection-failures-as-warnings
name: linkcheck
- name: Send mail
send_mail_on_failure:
needs: check_links
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.MAIL_HOST}}
server_port: ${{secrets.MAIL_PORT}}
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Failed linkcheck
to: [email protected]
from: FusionAuth GitHub Actions
body: Linkcheck failed.

0 comments on commit 4bfaa55

Please sign in to comment.