File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -75,23 +75,26 @@ jobs:
7575 - uses : actions/checkout@v4
7676
7777 - name : Get changed files
78+ if : github.event_name == 'pull_request' # This action is working only in pull-request (it fails in push to master)
7879 id : changed-files
7980 uses : tj-actions/changed-files@v45
8081 with :
8182 separator : ' ;' # idf-build-apps expects files seprated with semicolon
8283
8384 - name : Build ESP-BSP applications
85+ if : always()
8486 shell : bash
8587 env :
8688 IDF_EXTRA_ACTIONS_PATH : " ${{ github.workspace }}/examples"
87- ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.all_modified_files }}
89+ # When event not a pull-request, the action before must be skipped and the steps.changed-files.outputs.all_modified_files variable is not exists and must be removed
90+ ALL_CHANGED_FILES : ${{ (github.event_name != 'pull_request') && format(' ') || format('--modified-files=') }}${{ (github.event_name != 'pull_request') && format(' ') || steps.changed-files.outputs.all_modified_files }}
8891 run : |
8992 . ${IDF_PATH}/export.sh
9093 pip install idf-component-manager==1.* ruamel.yaml idf-build-apps==2.4.3 --upgrade
9194
92- echo "Files changed: ${ ALL_CHANGED_FILES}"
93- idf-build-apps find --modified-files "${ ALL_CHANGED_FILES}"
94- idf-build-apps build --parallel-count ${{ matrix.parallel_count }} --parallel-index ${{ matrix.parallel_index }} --modified-files "${ ALL_CHANGED_FILES}" --collect-app-info build_info_${{ matrix.idf_ver }}_${{ matrix.parallel_index }}.json
95+ echo "Files changed: "${{env. ALL_CHANGED_FILES}}
96+ idf-build-apps find ${{env. ALL_CHANGED_FILES}}
97+ idf-build-apps build --parallel-count ${{ matrix.parallel_count }} --parallel-index ${{ matrix.parallel_index }} ${{env. ALL_CHANGED_FILES}} --collect-app-info build_info_${{ matrix.idf_ver }}_${{ matrix.parallel_index }}.json
9598
9699 - uses : actions/upload-artifact@v4
97100 if : github.repository_owner == 'espressif' && needs.prepare.outputs.build_only == '0'
You can’t perform that action at this time.
0 commit comments