-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.02 KB
/
link_checker.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
# .github/workflows/link_checker.yml
name: Link Checker
on:
push:
branches:
- main
schedule:
- cron: '0 */3 * * *'
jobs:
build:
name: 🔍 those 🌐 🔗
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: Build and run
run: cargo run
- name: Verify Changed files
id: verify-changed-files
uses: tj-actions/verify-changed-files@v20
with:
files: |
Archives.md
- name: Commit and Push Changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Updated Link Test Results
branch: main
file_pattern: Archives.md
env:
GIT_USER_NAME: ${{ secrets.ACTIONS_USERNAME }}
GIT_USER_EMAIL: ${{ secrets.ACTIONS_EMAIL }}
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}