-
Notifications
You must be signed in to change notification settings - Fork 18
42 lines (32 loc) · 1.04 KB
/
daily-url-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
name: Daily URL Check
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch: # Allow manual triggering
jobs:
check-urls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: bundle install
- name: Check URLs
id: url_check
run: bundle exec ruby src/check_url_status.rb
continue-on-error: true
- name: Create Pull Request
if: steps.url_check.outcome == 'failure'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Remove broken URLs
title: Remove broken URLs
body: |
## Description
🤖 This is an automated PR opened by a bot.
This PR removes broken URLs from `data_sources.json`.
The daily URL check found one or more broken links that have been automatically removed.
branch: bot/remove-broken-urls
delete-branch: true