GitHub Skill
Manage GitHub repositories using git CLI and GITHUB_TOKEN.
Authentication
git clone https://${GITHUB_TOKEN}@github.com/arpowers/bot.git /tmp/bot
CI Failure Workflow
When notified of a CI failure:
- Clone the repo
rm -rf /tmp/bot
git clone https://${GITHUB_TOKEN}@github.com/arpowers/bot.git /tmp/bot
cd /tmp/bot
-
Check the error - Visit the GitHub Actions log URL provided
-
Fix the issue - Edit files as needed
-
Commit and push
cd /tmp/bot
git config user.name "Ari Bot"
git config user.email "bot@andrewpowers.com"
git add -A
git commit -m "fix: <description>"
git push
Repos
| Repo | Purpose | |------|---------| | arpowers/bot | This bot's code |
微信扫一扫