Unverified Commit 9b9744f2 authored by Abdelatif Guettouche's avatar Abdelatif Guettouche Committed by GitHub

publish.yml: Limit the running scope of the publish Workflow. (#6428)

1. Don't run the publish test result workflow on the master
branch.
2. Run only on Pull Requests to be able to publish the result as a PR comment.
3. Avoid running when the triggering workflow was skipped, this will
   cause a failure as no file will be uploaded.
Signed-off-by: default avatarAbdelatif Guettouche <abdelatif.guettouche@espressif.com>
parent 68daea4a
......@@ -3,6 +3,7 @@ name: Unit Test Results
on:
workflow_run:
workflows: [Run tests in hardware]
branches-ignore: [master]
types:
- completed
......@@ -11,6 +12,9 @@ jobs:
unit-test-results:
name: Unit Test Results
runs-on: ubuntu-latest
if: |
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Download and Extract Artifacts
env:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment