Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
ci: add labels when e2e failed (#3451)
白熱d2417f4f39a2
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex 33c01329a7..ea4eaecbc0 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -35,7 +35,25 @@ jobs:vercel-org-id: ${{ secrets.ORG_ID }}vercel-project-id: ${{ secrets.PROJECT_ID_E2E}}- - uses: daun/playwright-report-summary@v3+ - name: Generate Playwright Report+ uses: daun/playwright-report-summary@v3+ if: always()with:report-file: playwright-report.jsoncustom-info: 'For more information, [see full report](${{ steps.vercel-e2e-report.outputs.preview-url }})'++ - name: Set Label+ uses: actions/github-script@v6+ if: failure()+ with:+ script: |+ const { owner, repo } = context.repo;+ const prNumber = context.payload.pull_request.number;+ const labelsToAdd = ['qa:rejected'];++ await github.rest.issues.addLabels({+ owner,+ repo,+ issue_number: prNumber,+ labels: labelsToAdd,+ });