|
5 | 5 |
|
6 | 6 | permissions: |
7 | 7 | contents: read |
8 | | - pull-requests: read |
9 | 8 |
|
10 | 9 | jobs: |
11 | 10 | detect-changed-packages: |
@@ -88,20 +87,30 @@ jobs: |
88 | 87 | name: Lint uipath-llamaindex |
89 | 88 | needs: detect-changed-packages |
90 | 89 | runs-on: ubuntu-latest |
91 | | - if: '!contains(github.event.pull_request.labels.*.name, ''test-core-dev-version'')' |
92 | 90 | steps: |
93 | | - - name: Check if package changed |
| 91 | + - name: Check if should skip |
94 | 92 | id: check |
95 | 93 | run: | |
96 | | - if echo '${{ needs.detect-changed-packages.outputs.packages }}' | grep -q 'uipath-llamaindex'; then |
| 94 | + # Check for test-core-dev-version label |
| 95 | + if [[ "${{ contains(github.event.pull_request.labels.*.name, 'test-core-dev-version') }}" == "true" ]]; then |
| 96 | + echo "changed=false" >> $GITHUB_OUTPUT |
| 97 | + echo "reason=custom-version-testing" >> $GITHUB_OUTPUT |
| 98 | + # Check if package changed |
| 99 | + elif echo '${{ needs.detect-changed-packages.outputs.packages }}' | grep -q 'uipath-llamaindex'; then |
97 | 100 | echo "changed=true" >> $GITHUB_OUTPUT |
98 | 101 | else |
99 | 102 | echo "changed=false" >> $GITHUB_OUTPUT |
| 103 | + echo "reason=no-changes" >> $GITHUB_OUTPUT |
100 | 104 | fi |
101 | 105 |
|
102 | | - - name: Skip if no changes |
| 106 | + - name: Skip if no changes or custom version testing |
103 | 107 | if: steps.check.outputs.changed != 'true' |
104 | | - run: echo "No changes to uipath-llamaindex, skipping lint" |
| 108 | + run: | |
| 109 | + if [[ "${{ steps.check.outputs.reason }}" == "custom-version-testing" ]]; then |
| 110 | + echo "Custom version testing enabled - skipping lint" |
| 111 | + else |
| 112 | + echo "No changes to uipath-llamaindex, skipping lint" |
| 113 | + fi |
105 | 114 |
|
106 | 115 | - name: Checkout |
107 | 116 | if: steps.check.outputs.changed == 'true' |
@@ -143,20 +152,30 @@ jobs: |
143 | 152 | name: Lint uipath-openai-agents |
144 | 153 | needs: detect-changed-packages |
145 | 154 | runs-on: ubuntu-latest |
146 | | - if: '!contains(github.event.pull_request.labels.*.name, ''test-core-dev-version'')' |
147 | 155 | steps: |
148 | | - - name: Check if package changed |
| 156 | + - name: Check if should skip |
149 | 157 | id: check |
150 | 158 | run: | |
151 | | - if echo '${{ needs.detect-changed-packages.outputs.packages }}' | grep -q 'uipath-openai-agents'; then |
| 159 | + # Check for test-core-dev-version label |
| 160 | + if [[ "${{ contains(github.event.pull_request.labels.*.name, 'test-core-dev-version') }}" == "true" ]]; then |
| 161 | + echo "changed=false" >> $GITHUB_OUTPUT |
| 162 | + echo "reason=custom-version-testing" >> $GITHUB_OUTPUT |
| 163 | + # Check if package changed |
| 164 | + elif echo '${{ needs.detect-changed-packages.outputs.packages }}' | grep -q 'uipath-openai-agents'; then |
152 | 165 | echo "changed=true" >> $GITHUB_OUTPUT |
153 | 166 | else |
154 | 167 | echo "changed=false" >> $GITHUB_OUTPUT |
| 168 | + echo "reason=no-changes" >> $GITHUB_OUTPUT |
155 | 169 | fi |
156 | 170 |
|
157 | | - - name: Skip if no changes |
| 171 | + - name: Skip if no changes or custom version testing |
158 | 172 | if: steps.check.outputs.changed != 'true' |
159 | | - run: echo "No changes to uipath-openai-agents, skipping lint" |
| 173 | + run: | |
| 174 | + if [[ "${{ steps.check.outputs.reason }}" == "custom-version-testing" ]]; then |
| 175 | + echo "Custom version testing enabled - skipping lint" |
| 176 | + else |
| 177 | + echo "No changes to uipath-openai-agents, skipping lint" |
| 178 | + fi |
160 | 179 |
|
161 | 180 | - name: Checkout |
162 | 181 | if: steps.check.outputs.changed == 'true' |
|
0 commit comments