-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (78 loc) · 2.62 KB
/
continuous_delivery.yml
File metadata and controls
86 lines (78 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Continuous Delivery
on:
push:
branches: [main]
concurrency:
group: continuous_delivery
jobs:
test:
uses: ./.github/workflows/test.yaml
secrets: inherit
test_passed:
needs: [test]
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
if: always()
runs-on: ubuntu-24.04
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
changes:
runs-on: ubuntu-24.04
outputs:
holistics_development: ${{ steps.filter.outputs.holistics_development_any_changed }}
holistics_reporting: ${{ steps.filter.outputs.holistics_reporting_any_changed }}
marketplace: ${{ steps.filter.outputs.marketplace_any_changed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: tj-actions/changed-files@v45
id: filter
with:
files_yaml: |
holistics_development:
- 'plugins/holistics-development/.claude-plugin/plugin.json'
holistics_reporting:
- 'plugins/holistics-reporting/.claude-plugin/plugin.json'
marketplace:
- '.claude-plugin/marketplace.json'
- name: Show changes
run: echo "$OUTPUTS"
shell: bash
env:
OUTPUTS: ${{ toJSON(steps.filter.outputs) }}
tag_holistics_development:
needs: [test_passed, changes]
runs-on: ubuntu-24.04
if: needs.changes.outputs.holistics_development == 'true'
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.HOLISTICS_DEPLOY_KEY }}
- name: Tag version for holistics-development
uses: ./.github/actions/tag_version_plugin
with:
plugin: holistics-development
tag_holistics_reporting:
needs: [test_passed, changes]
runs-on: ubuntu-24.04
if: needs.changes.outputs.holistics_reporting == 'true'
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.HOLISTICS_DEPLOY_KEY }}
- name: Tag version for holistics-reporting
uses: ./.github/actions/tag_version_plugin
with:
plugin: holistics-reporting
tag_marketplace:
needs: [test_passed, changes]
runs-on: ubuntu-24.04
if: needs.changes.outputs.marketplace == 'true'
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.HOLISTICS_DEPLOY_KEY }}
- name: Tag version for marketplace
uses: ./.github/actions/tag_version_marketplace