Scheduled jobs: Check search URLs #510
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
name: "Scheduled jobs: Check search URLs" | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string. | |
# Run every day at 3:00PM UTC. | |
- cron: '0 15 * * *' | |
workflow_dispatch: | |
jobs: | |
all: | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
name: Check search URLs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.135.0' | |
extended: true | |
- uses: algolia/setup-algolia-cli@master | |
- name: Run make check_search_urls | |
run: make check_search_urls | |
env: | |
SLACK_ACCESS_TOKEN: ${{ secrets.SLACK_ACCESS_TOKEN }} | |
ALGOLIA_APP_ID: ${{ vars.ALGOLIA_APP_ID }} | |
ALGOLIA_APP_SEARCH_KEY: ${{ vars.ALGOLIA_APP_SEARCH_KEY }} | |
ALGOLIA_APP_ADMIN_KEY: ${{ secrets.ALGOLIA_APP_ADMIN_KEY }} |