GitHubActionsAutomationSandbox
Example repo demonstrating different types of automated tasks and CI integrations using GitHub Actions and Danger
Install / Use
/learn @n8ebel/GitHubActionsAutomationSandboxREADME
Example repo demonstrating different types of automated tasks and CI integrations
Examples Included
- Simple GitHub Actions workflow examples
- ktlint running in CI
- Gradle task to copy a pre-push git hook that validates ktlint
- .gitignore file which allows code styles, scopes, templates, etc to be tracked
- Pull Request template for GitHub
- Bug Report & Feature Issue templates for GitHub
- Danger integration to report APK size
- Danger integration to warn if WIP
- Danger integration to thank PR author
- Danger integration to add inline ktlint issue comments
- Danger integration to warn about missing PR description
- GitHub Actions workflow to check for dependency updates every day at 8:00
Triggering Repository_Dispatch Workflows
Running the following curl command will trigger 2 different workflows:
triggered_example.ymltriggerable_tasks.yml
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token <your-token-here>" \
--request POST \
--data '{"event_type": "do-something"}' \
https://api.github.com/repos/n8ebel/GitHubActionsAutomationSandbox/dispatches
With this command, the triggerable_tasks.yml workflow will run, but several of the steps will not run because the repository_dispath event didn't have the required properties passed with it.
To run the full triggerable_tasks.yml workflow, run the following curl command:
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token <your-token-here>" \
--request POST \
--data '{"event_type": "do-something", "client_payload": { "text": "a title"}}' \
https://api.github.com/repos/n8ebel/GitHubActionsAutomationSandbox/dispatches
Triggering Workflow_Dispatch Events
Workflows configured to run in response to workflow_dispatch events may be triggered in 2 ways:
- using the GitHub Actions api
- from the GitHub Actions UI in your repository
To trigger the workflow_dispatch_example.yml workflow, the following curl can be used:
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token <your-token-here>" \
--request POST \
--data '{
"ref": "main",
"inputs":{
"input1":"some value",
"input2":"some value 2"
}
}' \
https://api.github.com/repos/n8ebel/GitHubActionsAutomationSandbox/actions/workflows/workflow_dispatch_example.yml/dispatches
- The
refinput corresponds to thebranch,tag, orcommityou want the workflow to be run on. - The
inputsinput corresponds with the inputs defined in the workflow file, and with what is present in the UI when triggering the workflow from GitHub
Resources
- GitHub Actions Marketplace
- GitHub Actions Documentation
- Git Hooks to Enforce Code Quality
- Creating a Pull Request Template for Your Repository
- Closing GitHub Issues With Keywords
- Danger Reference
- Getting Started With Danger
- Automating Code Review Tasks for Multi-Module Android Projects
- Gradle Play Publisher Plugin
- Firebase App Distribution
- Danger Checkstyle Format
- Gradle Versions Plugin
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
