diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml new file mode 100644 index 0000000..492ee5f --- /dev/null +++ b/.github/workflows/update-readme.yml @@ -0,0 +1,37 @@ +name: Update README + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + update-readme: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Run update script + run: node scripts/update_readme.js + + - name: Check for changes + id: git-check + run: | + git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT + + - name: Commit and push changes + if: steps.git-check.outputs.changes == 'true' + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add README.md + git commit -m "Update README [skip ci]" + git push diff --git a/README.md b/README.md index 03f158c..7bee142 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Set of skills by @rodydavis +# Agent Skills by @rodydavis ### flutter-control-and-screenshot Guide on how to control a Flutter app using flutter_driver via MCP and capture screenshots. diff --git a/scripts/update_readme.js b/scripts/update_readme.js index 0cb44f1..f48c4e4 100644 --- a/scripts/update_readme.js +++ b/scripts/update_readme.js @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + const fs = require('fs'); const path = require('path'); @@ -44,7 +60,7 @@ function main() { console.log('Scanning for skills...'); const skillFiles = findSkillFiles(skillsDir); - let readmeContent = '# Set of skills by @rodydavis\n\n'; + let readmeContent = '# Agent Skills by @rodydavis\n\n'; skillFiles.forEach(file => { const content = fs.readFileSync(file, 'utf8'); diff --git a/skills/.gitkeep b/skills/.gitkeep deleted file mode 100644 index e69de29..0000000