-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
328ab5b
commit b758c2c
Showing
3 changed files
with
39 additions
and
0 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,17 @@ | ||
#!/bin/sh | ||
#set -e | ||
|
||
echo "checking solution id $1" | ||
echo "grep -nr --exclude-dir='.github' "$1" ./.." | ||
result=$(grep -nr --exclude-dir='.github' "$1" ./..) | ||
if [ $? -eq 0 ] | ||
then | ||
echo "Solution ID $1 found\n" | ||
echo "$result" | ||
exit 0 | ||
else | ||
echo "Solution ID $1 not found" | ||
exit 1 | ||
fi | ||
|
||
export result |
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,19 @@ | ||
# Workflows managed by aws-solutions-library-samples maintainers | ||
name: Maintainer Workflows | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
types: [opened, reopened, edited] | ||
|
||
jobs: | ||
CheckSolutionId: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run solutionid validator | ||
run: | | ||
chmod u+x ./.github/solutionid_validator.sh | ||
./.github/solutionid_validator.sh ${{ vars.SOLUTIONID }} |
Validating CODEOWNERS rules …
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,3 @@ | ||
CODEOWNERS @aws-solutions-library-samples/maintainers | ||
/.github/workflows/maintainer_workflows.yml @aws-solutions-library-samples/maintainers | ||
/.github/solutionid_validator.sh @aws-solutions-library-samples/maintainers |