Skip to content

feat(gen): update

feat(gen): update #21

name: Check links on schedule
on:
schedule:
- cron: "59 23 * * 0" # Runs every Sunday at 23:59
push: # for testing purposes, do not merge
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: |
echo "name=date" >> $GITHUB_STATE
echo "name=date value=$(date +'%Y-%m-%d')" >> $GITHUB_STATE
- uses: filiph/[email protected]
with:
arguments: https://www.scaleway.com/en/docs/serverless/ >> linkcheck_output.txt
- name: Upload a Build Artifact
if: always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
uses: actions/[email protected]
with:
name: linkcheck_output.txt
path: linkcheck_output.txt
- name: Send a saved artifact to a Slack workflow
if: always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
uses: slackapi/[email protected] # ref: https://github.com/slackapi/slack-github-action
with:
payload: |
text: Link check results from ${{ steps.date.outputs.date }}.
payload-file-path: "linkcheck_output.txt"
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger