Commit 054504c
authored
chore: convert reusable workflows to composite actions (#114)
BREAKING CHANGE: Converts updater and danger reusable workflows to composite actions for improved reliability and easier consumption.
## Key Changes
**Architecture:**
- Move `.github/workflows/updater.yml` → `updater/action.yml`
- Move `.github/workflows/danger.yml` → `danger/action.yml`
- Bundle scripts locally instead of downloading at runtime
- Include checkout step within actions for seamless user experience
**API Changes:**
- Convert `secrets.api-token` to `inputs.api-token`
- Remove `_workflow_version` parameter (no longer needed)
- Add proper input validation and error handling
**Documentation:**
- Split into dedicated README files with complete examples
- Include required permissions in usage examples
- Provide migration guide with before/after examples
## Migration Required
```yaml
# Before (v2)
jobs:
update:
uses: getsentry/github-workflows/.github/workflows/updater.yml@v2
secrets:
api-token: ${{ secrets.CI_DEPLOY_KEY }}
# After (v3)
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: getsentry/github-workflows/updater@v3
with:
api-token: ${{ secrets.CI_DEPLOY_KEY }}
Resolves #113
Co-authored-by: Claude noreply@anthropic.com1 parent c8c3a19 commit 054504c
File tree
12 files changed
+708
-535
lines changed- .github/workflows
- danger
- scripts
- updater
12 files changed
+708
-535
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
This file was deleted.
This file was deleted.
0 commit comments