-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add action for validating urls of recently modified yaml files
This switch the workflow trigger from `pull_request` to `pull_request_target` in order to allow access to environment secrets. This means that the workflow runs on the target branch instead of the branch of the pull request.
- Loading branch information
Showing
5 changed files
with
226 additions
and
122 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
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,11 @@ | ||
#!/bin/sh | ||
# Check all STEX URLs contained in files that have been modified since a commit. | ||
set -e | ||
if [ "$#" -ne 2 ]; then | ||
echo "Pass the commit/branch to compare to as first argument, the src folder as second." | ||
exit 1 | ||
fi | ||
|
||
BASE="$(git merge-base @ "$1")" | ||
|
||
git diff "$BASE" --name-only -- "$2" | xargs --delimiter '\n' python .github/st-check-updates.py --mode=id |
Oops, something went wrong.