-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check links on deployments, as well as via cron
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Check Links | ||
|
||
on: | ||
# Allow manually triggering this workflow. | ||
workflow_dispatch: | ||
|
||
# Run onn deployments | ||
deployment_status: | ||
|
||
# Also run it every day at 4.15am UTC | ||
schedule: | ||
- cron: '15 4 * * *' | ||
|
||
env: | ||
SITE_URL: "https://fusedata.dev/" | ||
|
||
jobs: | ||
linkcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set site URL from the deployment status information | ||
if: ${{ github.event_name == 'deployment_status' }} | ||
run: | | ||
echo "SITE_URL=${{github.event.deployment_status.environment_url}}" >> "$GITHUB_ENV" | ||
- name: Check links on the live site | ||
uses: filiph/[email protected] | ||
with: | ||
arguments: --external --nice $SITE_URL |