Refactor BridgesAdjacencyList: add docs, clean up code (#1297) #33
This file contains hidden or 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
| # Use awesome bot to verify that all URLs in the README are valid. | |
| name: README URL Checker | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2 | |
| # Disable bundler-cache since we aren't using a Gemfile | |
| bundler-cache: false | |
| - name: Install Awesome Bot | |
| # We install it globally so we don't need bundle exec | |
| run: gem install awesome_bot | |
| # TODO: Cache the result of awesome_bot requests, we don't need to check | |
| # if a link is valid for every commit/PR all the time, we should be able | |
| # to cache the result for a couple days. | |
| - name: Run Awesome Bot | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| # Call the command directly | |
| awesome_bot README.md --allow-dupe --allow-redirect --allow 429 |