Skip to content

Commit

Permalink
enable workflows, codeowners
Browse files Browse the repository at this point in the history
  • Loading branch information
anindith123 committed Oct 20, 2024
1 parent fa97610 commit c1d1648
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/solutionid_validator.sh
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
19 changes: 19 additions & 0 deletions .github/workflows/maintainer_workflows.yml
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 }}
3 changes: 3 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
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

0 comments on commit c1d1648

Please sign in to comment.