Skip to content

Commit ea277a5

Browse files
committed
improve pathing
1 parent 61492af commit ea277a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,24 @@ runs:
5757
- name: Checkout HEAD
5858
uses: actions/checkout@v5
5959
with:
60-
fetch-depth: 0
6160
submodules: 'recursive'
6261
token: ${{ inputs.checkout_token || github.token }}
62+
path: head
63+
fetch-depth: 0
6364

6465
- name: Build (HEAD)
6566
uses: espressif/esp-idf-ci-action@v1
6667
with:
6768
esp_idf_version: ${{ inputs.idf_version }}
6869
target: ${{ inputs.idf_target }}
69-
path: ${{ inputs.app_path }}
70+
path: head/${{ inputs.app_path }}
7071
command: |
7172
set IDF_COMPONENT_MANAGER=${{ inputs.idf_component_manager }}
7273
idf.py size --format json2 --output-file idf_size.json
7374
7475
- name: Process size (HEAD)
7576
shell: bash
76-
working-directory: ${{ inputs.app_path }}
77+
working-directory: head/${{ inputs.app_path }}
7778
run:
7879
python ${{ github.action_path }}/idf_size_report.py --in-file idf_size.json --out-file size.json --flash-total-override "${{ inputs.flash_total_override }}" || echo '{"flash":0,"dram":0,"iram":0,"ram":0}' > size.json
7980

@@ -104,11 +105,10 @@ runs:
104105

105106
- name: Make markdown
106107
id: mkdown
107-
working-directory: ${{ inputs.app_path }}
108108
shell: bash
109109
run: |
110110
# generate markdown
111-
md=$(${{ steps.id_python_313.outputs.python-path }} ${{ github.action_path }}/render_markdown.py --app-name "${{ inputs.app_name }}" --head-json size.json --base-json base/size.json)
111+
md=$(${{ steps.id_python_313.outputs.python-path }} ${{ github.action_path }}/render_markdown.py --app-name "${{ inputs.app_name }}" --head-json head/${{ inputs.app_path }}/size.json --base-json base/${{ inputs.app_path }}/size.json)
112112
# append to summary and set output
113113
echo "$md" >> "$GITHUB_STEP_SUMMARY"
114114
echo "markdown<<EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)