Skip to content

Commit

Permalink
initiate action
Browse files Browse the repository at this point in the history
  • Loading branch information
erexer committed Jan 6, 2025
1 parent 51fbac7 commit 0673a89
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/code-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check README.md for Scripts
on:
push:
branches:
- 'feature/code-quality-action'

jobs:
check-for-scripts:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check for scripts in README.md
run: |
scripts=$(grep -Eo '\w+\.(sh|bash|py|js)' README.md)
if [ -z "$scripts" ]; then
echo "No scripts found in README.md."
else
echo "Found the following scripts in README.md:"
for script in $scripts; do
echo "$script"
done
fi

0 comments on commit 0673a89

Please sign in to comment.