-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 1.95 KB
/
link-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2021-2023 The Foundation for Public Code <[email protected]>
name: Scheduled link check demo
on:
workflow_dispatch: {}
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '11 3 * * *' # every day at 03:11 UTC
defaults:
run:
shell: bash
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
deployments: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
link-check:
if: ${{ github.repository == 'publiccodenet/url-check' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: update-deps
run: sudo apt-get update
- name: upgrade-deps
run: sudo apt-get upgrade -y
- name: install-deps
run: >
sudo apt-get install -y
libxml2-utils
make
nodejs
python3
python3-docopt
wget
- name: fetch-previous-results
run: wget https://publiccodenet.github.io/url-check/url-check-results.json
- name: update-site
run: make site
- name: report-built-files
run: find _site -ls
- name: Deploy to GitHub Pages
id: deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site