@@ -132,6 +132,12 @@ jobs:
132132 ${{ env.COMPOSE_BASH_CMD }}
133133 "mkdir -p tmp/systmp"
134134
135+ - name : Remove Test Passing label
136+ uses : actions-ecosystem/action-remove-labels@v1
137+ with :
138+ number : ${{ github.event.pull_request.number }}
139+ labels : test-passing
140+
135141 - name : Run Specs
136142 timeout-minutes : 15
137143 run : >
@@ -214,43 +220,6 @@ jobs:
214220 number : ${{ github.event.pull_request.number }}
215221 labels : test-passing
216222
217- # steps:
218- # - name: Update labels based on test results
219- # uses: actions/github-script@v7
220- # with:
221- # github-token: ${{ secrets.GITHUB_TOKEN }}
222- # script: |
223- # const prNumber = context.payload.pull_request.number;
224- # const status = "${{ needs.tests.outputs.status }}";
225-
226- # const removeLabel = async (label) => {
227- # try {
228- # await github.rest.issues.removeLabel({
229- # ...context.repo,
230- # issue_number: prNumber,
231- # name: label,
232- # });
233- # } catch (error) {
234- # if (error.status !== 404) throw error; // ignore missing label
235- # }
236- # };
237-
238- # const addLabel = async (label) => {
239- # await github.rest.issues.addLabels({
240- # ...context.repo,
241- # issue_number: prNumber,
242- # labels: [label],
243- # });
244- # };
245-
246- # if (status === 'success') {
247- # await removeLabel("test-failure");
248- # await addLabel("test-passing");
249- # } else if (status === 'failure') {
250- # await removeLabel("test-passing");
251- # await addLabel("test-failure");
252- # }
253-
254223 publish_results :
255224 name : Publish Test Results and Coverage
256225 if : always()
0 commit comments