Skip to content

Commit a1fa08e

Browse files
vaindclaude
andcommitted
refactor: move workflow files to action directories
Move .github/workflows/updater.yml to updater/action.yml Move .github/workflows/danger.yml to danger/action.yml This preserves git history and makes the conversion diff clearer. Content will be modified in next commit to convert to composite actions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c8c3a19 commit a1fa08e

File tree

4 files changed

+43
-21
lines changed

4 files changed

+43
-21
lines changed

.github/workflows/danger-workflow-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ on:
77

88
jobs:
99
danger:
10-
uses: ./.github/workflows/danger.yml
11-
with:
12-
_workflow_version: ${{ github.sha }}
10+
runs-on: ubuntu-latest
11+
outputs:
12+
outcome: ${{ steps.danger.outputs.outcome }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Run danger action
16+
id: danger
17+
uses: ./danger
1318

1419
test-outputs:
1520
runs-on: ubuntu-latest

.github/workflows/workflow-tests.yml

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,43 @@ on:
66

77
jobs:
88
updater-create-pr:
9-
uses: ./.github/workflows/updater.yml
10-
with:
11-
path: updater/tests/sentry-cli.properties
12-
name: WORKFLOW-TEST-DEPENDENCY-DO-NOT-MERGE
13-
pattern: '^2\.0\.'
14-
pr-strategy: update
15-
_workflow_version: ${{ github.sha }}
16-
secrets:
17-
api-token: ${{ github.token }}
9+
runs-on: ubuntu-latest
10+
outputs:
11+
prUrl: ${{ steps.updater.outputs.prUrl }}
12+
baseBranch: ${{ steps.updater.outputs.baseBranch }}
13+
prBranch: ${{ steps.updater.outputs.prBranch }}
14+
originalTag: ${{ steps.updater.outputs.originalTag }}
15+
latestTag: ${{ steps.updater.outputs.latestTag }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Run updater action
19+
id: updater
20+
uses: ./updater
21+
with:
22+
path: updater/tests/sentry-cli.properties
23+
name: WORKFLOW-TEST-DEPENDENCY-DO-NOT-MERGE
24+
pattern: '^2\.0\.'
25+
pr-strategy: update
26+
api-token: ${{ github.token }}
1827

1928
updater-test-args:
20-
uses: ./.github/workflows/updater.yml
21-
with:
22-
path: updater/tests/workflow-args.sh
23-
name: Workflow args test script
24-
runs-on: macos-latest
25-
pattern: '.*'
26-
_workflow_version: ${{ github.sha }}
27-
secrets:
28-
api-token: ${{ github.token }}
29+
runs-on: macos-latest
30+
outputs:
31+
prUrl: ${{ steps.updater.outputs.prUrl }}
32+
baseBranch: ${{ steps.updater.outputs.baseBranch }}
33+
prBranch: ${{ steps.updater.outputs.prBranch }}
34+
originalTag: ${{ steps.updater.outputs.originalTag }}
35+
latestTag: ${{ steps.updater.outputs.latestTag }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Run updater action
39+
id: updater
40+
uses: ./updater
41+
with:
42+
path: updater/tests/workflow-args.sh
43+
name: Workflow args test script
44+
pattern: '.*'
45+
api-token: ${{ github.token }}
2946

3047
updater-test-outputs:
3148
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)