File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,6 +116,23 @@ jobs:
116116 packages : write
117117 id-token : write
118118
119+ updateTestConfig :
120+ name : Update Test Config
121+ needs :
122+ - prepare
123+ - export
124+
125+ if : github.event.comment.body == '/publish' && needs.prepare.outputs.overlay-branch != '' && needs.prepare.outputs.workspace != ''
126+
127+ uses : ./.github/workflows/update-test-config.yaml
128+ with :
129+ workspace : ${{ needs.prepare.outputs.workspace }}
130+ pr_number : ${{ needs.prepare.outputs.pr-number }}
131+ overlay_branch : ${{ needs.prepare.outputs.overlay-branch }}
132+ overlay_repo : ${{ needs.prepare.outputs.overlay-repo }}
133+ published_exports : ${{ needs.export.outputs.published-exports }}
134+ failed_exports : ${{ needs.export.outputs.failed-exports }}
135+
119136 checkBackstageCompatibility :
120137 name : Check workspace backstage compatibility
121138 needs :
@@ -138,6 +155,7 @@ jobs:
138155 - prepare
139156 - checkPRUpToDate
140157 - export
158+ - updateTestConfig
141159 - checkBackstageCompatibility
142160
143161 concurrency :
@@ -171,7 +189,7 @@ jobs:
171189 filter: 'latest',
172190 });
173191 const success = jobs.data.jobs
174- .filter(j => j.name.startsWith('Publish') || j.name.startsWith('export') || j.name.startsWith('Export') || j.name.startsWith('Check'))
192+ .filter(j => j.name.startsWith('Publish') || j.name.startsWith('export') || j.name.startsWith('Export') || j.name.startsWith('Check') || j.name.startsWith('Update Test Config') )
175193 .every(j => j.conclusion === 'success');
176194
177195 await github.rest.repos.createCommitStatus({
You can’t perform that action at this time.
0 commit comments