File: subtree-split.yml

package info (click to toggle)
phing 3.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,328 kB
  • sloc: php: 59,826; xml: 9,770; sql: 78; makefile: 39; sh: 14
file content (127 lines) | stat: -rw-r--r-- 3,553 bytes parent folder | download
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: 'Task Packages Split'

on:
  push:
    branches:
      - main
    tags:
      - '*'

env:
  GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_MONOREPO_SPLIT }}

jobs:
  packages_split:
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        # define package to repository map
        package:
          -
            local_path: 'Amazon'
            split_repository: 'task-aws'
          -
            local_path: 'Analyzer'
            split_repository: 'task-analyzers'
          -
            local_path: 'ApiGen'
            split_repository: 'task-apigen'
          -
            local_path: 'Archive'
            split_repository: 'task-archives'
          -
            local_path: 'Coverage'
            split_repository: 'task-coverage'
          -
            local_path: 'DbDeploy'
            split_repository: 'task-dbdeploy'
          -
            local_path: 'FtpDeploy'
            split_repository: 'task-ftpdeploy'
          -
            local_path: 'Git'
            split_repository: 'task-git'
          -
            local_path: 'Hg'
            split_repository: 'task-hg'
          -
            local_path: 'Http'
            split_repository: 'task-http'
          -
            local_path: 'IniFile'
            split_repository: 'task-inifile'
          -
            local_path: 'Ioncube'
            split_repository: 'task-ioncube'
          -
            local_path: 'JsHint'
            split_repository: 'task-jshint'
          -
            local_path: 'JsMin'
            split_repository: 'task-jsmin'
          -
            local_path: 'Liquibase'
            split_repository: 'task-liquibase'
          -
            local_path: 'PhkPackage'
            split_repository: 'task-phkpackage'
          -
            local_path: 'PhpDoc'
            split_repository: 'task-phpdoc'
          -
            local_path: 'PhpUnit'
            split_repository: 'task-phpunit'
          -
            local_path: 'Sass'
            split_repository: 'task-sass'
          -
            local_path: 'Smarty'
            split_repository: 'task-smarty'
          -
            local_path: 'Ssh'
            split_repository: 'task-ssh'
          -
            local_path: 'Svn'
            split_repository: 'task-svn'
          -
            local_path: 'Visualizer'
            split_repository: 'task-visualizer'
          -
            local_path: 'ZendCodeAnalyzer'
            split_repository: 'task-zendcodeanalyzer'
          -
            local_path: 'ZendServerDeploymentTool'
            split_repository: 'task-zendserverdeploymenttool'

    steps:
      - uses: actions/checkout@v6

      # no tag
      -
        if: "!startsWith(github.ref, 'refs/tags/')"
        uses: "symplify/monorepo-split-github-action@v2.4.0"
        with:
          package_directory: 'src/Phing/Task/Ext/${{ matrix.package.local_path }}'

          repository_organization: 'phingofficial'
          repository_name: '${{ matrix.package.split_repository }}'

          user_name: "phing-ci"
          user_email: "info@phing.info"

      # with tag
      -
        if: "startsWith(github.ref, 'refs/tags/')"
        uses: "symplify/monorepo-split-github-action@v2.4.0"
        with:
          tag: ${GITHUB_REF#refs/tags/}

          package_directory: 'src/Phing/Task/Ext/${{ matrix.package.local_path }}'

          repository_organization: 'phingofficial'
          repository_name: '${{ matrix.package.split_repository }}'

          user_name: "phing-ci"
          user_email: "info@phing.info"