mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-08-01 03:34:27 +02:00
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: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
GitHub
parent
68daea4a4a
commit
9b9744f25f
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -3,6 +3,7 @@ name: Unit Test Results
|
|||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: [Run tests in hardware]
|
workflows: [Run tests in hardware]
|
||||||
|
branches-ignore: [master]
|
||||||
|
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
@@ -11,6 +12,9 @@ jobs:
|
|||||||
unit-test-results:
|
unit-test-results:
|
||||||
name: Unit Test Results
|
name: Unit Test Results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.event.workflow_run.event == 'pull_request' &&
|
||||||
|
github.event.workflow_run.conclusion != 'skipped'
|
||||||
steps:
|
steps:
|
||||||
- name: Download and Extract Artifacts
|
- name: Download and Extract Artifacts
|
||||||
env:
|
env:
|
||||||
|
Reference in New Issue
Block a user