-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from themr0c/docs-ci
- Loading branch information
Showing
9 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../tools/download_vale.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../tools/validate_language_changes.sh |
This file contains 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
17 changes: 17 additions & 0 deletions
17
modules/end-user-guide/pages/using-vale-github-action.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Metadata for Antora | ||
:navtitle: GitHub Action | ||
:keywords: vale, github | ||
// :page-aliases: | ||
// End of metadata for Antora | ||
|
||
:parent-context-of-using-vale-github-action: {context} | ||
|
||
[id="using-vale-github-action_{context}"] | ||
= Using vale GitHub Action | ||
|
||
:context: using-vale-github-action | ||
|
||
include::partial$proc_using-vale-github-action.adoc[leveloffset=+1] | ||
|
||
|
||
:context: {parent-context-of-using-vale-github-action} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2021 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
set -e | ||
|
||
# Download latest vale release | ||
gh release download --repo 'errata-ai/vale' --pattern '*Linux*.tar.gz' | ||
tar -xf vale* | ||
./vale -v | ||
|
||
# Download latest vale configuration from vale-at-red-hat | ||
curl -Os https://raw.githubusercontent.com/vale-at-red-hat/vale-at-red-hat/master/.vale.ini | ||
|
||
# Download latest _RedHat_ style | ||
mkdir .vale/styles || true | ||
cd .vale/styles | ||
gh release download --repo 'vale-at-red-hat/vale-at-red-hat' --pattern 'RedHat.zip' | ||
unzip RedHat.zip |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2021 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
set -e | ||
|
||
vale -v | ||
|
||
BRANCH=origin/${GITHUB_BASE_REF:-main} | ||
|
||
FILES=$(git diff --name-only --diff-filter=AM "$BRANCH") | ||
|
||
echo "Files added or modified, in comparison to branch $BRANCH: | ||
$FILES" | ||
|
||
# shellcheck disable=SC2086 (We want to split on spaces) | ||
vale ${FILES} |