diff --git a/.github/workflows/link-check-schedule.yml b/.github/workflows/link-check-schedule.yml index cc6ca57d52..8b7d08af1b 100644 --- a/.github/workflows/link-check-schedule.yml +++ b/.github/workflows/link-check-schedule.yml @@ -1,12 +1,28 @@ name: Check links on schedule on: schedule: - - cron: "30 15 * * *" # Runs every Monday at 09:00 AM + - cron: "59 23 * * 0" # Runs every Sunday at 23:59 + push: # for testing purposes, do not merge jobs: linkcheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: filiph/linkcheck@3.0.0 - with: - arguments: https://www.scaleway.com/en/docs/ + - uses: filiph/linkcheck@3.0.0 + with: + arguments: https://www.scaleway.com/en/docs/serverless/ >> linkcheck_output.txt + - name: Parse output to variable + if: always() + run: | + { + echo 'LINKCHECK_OUTPUT<> "$GITHUB_ENV" + - name: Send message to Slack + if: always() + uses: slackapi/slack-github-action@v2.0.0 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook + payload: | + text: "Link check results:\n ${{ env.LINKCHECK_OUTPUT }}" diff --git a/test.txt b/test.txt new file mode 100644 index 0000000000..2c3c16c016 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +slack_sdk == 3.27.2 \ No newline at end of file