Skip to content

test_links

test_links #46

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# Check links in text files
# https://github.com/dkhamsing/awesome_bot
#
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# use ruby/setup-ruby@v1
# https://github.com/ruby/setup-ruby
# https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: test_links
on:
schedule:
- cron: "0 5 1 1,4,7,10 *"
jobs:
test:
runs-on: ubuntu-latest
# container: dkhamsing/awesome_bot # Docker method
steps:
- name: Check out Git repository
uses: actions/checkout@v4
# begin Ruby gem method
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- name: Install awesome_bot and dependencies
run: |
gem install awesome_bot
# end Ruby gem method
- name: Check links using awesome_bot
run: |
awesome_bot --allow-dupe --skip-save-results --white-list \
stackexchange.com,\
stackoverflow.com,\
askubuntu.com,\
superuser.com,\
redd.it,\
github.com/USERNAME/REPOSITORY,\
oFFvwZIEk1Y,\
gitlab.com/api,\
localhost,\
github.com/YOUR_USERNAME/YOUR_FORK,\
gist.github.com/username/gistid/raw/filename,\
www.java.com,\
docs.github.com,\
cloudflare.com,\
github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY \
`find . -name "*.md"`