Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwrobel committed May 24, 2023
1 parent 33708e0 commit b53bb75
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "daily"

# This updates the _data/release-data submodule once a day
# which itself is updated twice a day.
- package-ecosystem: "gitsubmodule"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/auto-merge-release-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
status_options: '--untracked-files=no'
commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'

# TODO: Leave a comment if there is a new major release that we don't match
- name: Enable auto-merge for Dependabot PRs for release data
if: ${{contains(steps.metadata.outputs.dependency-names, '_data/release-data')}}
run: gh pr merge --auto --rebase "$PR_URL"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check URLs

on:
push:
branches: [ '2709-validation-jekyll' ]
# schedule:
# - cron: '0 0 * * 6' # Every Saturday at 00:00.

jobs:
check_urls:
runs-on: ubuntu-latest
steps:
- name: Checkout site
uses: actions/checkout@v2

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true

- name: Check links
run: bundle exec jekyll build
env:
MUST_CHECK_URLS: true
4 changes: 2 additions & 2 deletions _plugins/product-data-validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# The validation done after enrichment is mainly the validation of URLs, because most of the URLs
# are generated by the changelogTemplate. Note that this validation is not done by default because
# it takes a lot of time. You can activate it by setting the MUST_CHECK_URL environment variable to
# it takes a lot of time. You can activate it by setting the MUST_CHECK_URLS environment variable to
# true before building the site.

require 'jekyll'
Expand Down Expand Up @@ -103,7 +103,7 @@ def self.validate(product)
end

def self.validate_urls(product)
if ENV.fetch('MUST_CHECK_URL', false)
if ENV.fetch('MUST_CHECK_URLS', false)
start = Time.now
Jekyll.logger.info TOPIC, "Validating urls for '#{product.name}'..."

Expand Down

0 comments on commit b53bb75

Please sign in to comment.