|
|
@ -40,23 +40,3 @@ jobs: |
|
|
|
runTests: false |
|
|
|
runTests: false |
|
|
|
- name: Run dashboardNewLayouts e2e |
|
|
|
- name: Run dashboardNewLayouts e2e |
|
|
|
run: yarn e2e:dashboard-new-layouts |
|
|
|
run: yarn e2e:dashboard-new-layouts |
|
|
|
- name: Post PR comment on fail |
|
|
|
|
|
|
|
uses: actions/github-script@v7 |
|
|
|
|
|
|
|
if: failure() |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
script: | |
|
|
|
|
|
|
|
const prNumber = context.payload.pull_request.number; |
|
|
|
|
|
|
|
const runId = context.runId; |
|
|
|
|
|
|
|
const repoUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}`; |
|
|
|
|
|
|
|
const runUrl = `${repoUrl}/actions/runs/${runId}`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await github.rest.issues.createComment({ |
|
|
|
|
|
|
|
owner: context.repo.owner, |
|
|
|
|
|
|
|
repo: context.repo.repo, |
|
|
|
|
|
|
|
issue_number: prNumber, |
|
|
|
|
|
|
|
body: `⚠️ E2E workflow for dashboardNewLayouts has failed. [Click here to view the run](${runUrl}).` |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
- name: Always succeed # This is a workaround to make the job pass even if the previous step fails |
|
|
|
|
|
|
|
if: failure() |
|
|
|
|
|
|
|
run: exit 0 |
|
|
|
|
|
|
|