Skip to content

Commit ce09b63

Browse files
committed
enable workflows, codeowners
1 parent aaf039b commit ce09b63

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.github/solutionid_validator.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
#set -e
3+
4+
echo "checking solution id $1"
5+
echo "grep -nr --exclude-dir='.github' "$1" ./.."
6+
result=$(grep -nr --exclude-dir='.github' "$1" ./..)
7+
if [ $? -eq 0 ]
8+
then
9+
echo "Solution ID $1 found\n"
10+
echo "$result"
11+
exit 0
12+
else
13+
echo "Solution ID $1 not found"
14+
exit 1
15+
fi
16+
17+
export result
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Workflows managed by aws-solutions-library-samples maintainers
2+
name: Maintainer Workflows
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the "main" branch
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
types: [opened, reopened, edited]
10+
11+
jobs:
12+
CheckSolutionId:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Run solutionid validator
17+
run: |
18+
chmod u+x ./.github/solutionid_validator.sh
19+
./.github/solutionid_validator.sh ${{ vars.SOLUTIONID }}

CODEOWNERS

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CODEOWNERS @aws-solutions-library-samples/maintainers
2+
/.github/workflows/maintainer_workflows.yml @aws-solutions-library-samples/maintainers
3+
/.github/solutionid_validator.sh @aws-solutions-library-samples/maintainers

0 commit comments

Comments
 (0)