Skip to content

Commit 01931d7

Browse files
committed
Update to latest size action, which allows better release notes
1 parent acd43e3 commit 01931d7

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/package_main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,19 @@ jobs:
7777
shell: bash
7878
run: |
7979
set -euo pipefail
80-
COMPARE_TAG_INPUT="${{ github.event.inputs.compare_tag || '' }}"
81-
if [ -n "$COMPARE_TAG_INPUT" ]; then
82-
echo "ref=$COMPARE_TAG_INPUT" >> "$GITHUB_OUTPUT"
83-
else
84-
# use the previous tag chronologically
85-
prev=$(git tag --sort=-creatordate | sed -n '2p')
86-
if [ -z "$prev" ]; then prev=$(git tag --sort=-v:refname | sed -n '2p'); fi
87-
echo "ref=$prev" >> "$GITHUB_OUTPUT"
88-
fi
80+
# use the previous tag chronologically
81+
prev=$(git tag --sort=-creatordate | sed -n '2p')
82+
if [ -z "$prev" ]; then prev=$(git tag --sort=-v:refname | sed -n '2p'); fi
83+
echo "ref=$prev" >> "$GITHUB_OUTPUT"
8984
9085
- name: Determine Size Delta
9186
if: ${{ github.event.release && github.event.action == 'published' }}
9287
uses: esp-cpp/esp-idf-size-delta@v1
9388
with:
9489
app_name: ${{ env.APP_NAME }}
9590
app_path: "."
91+
head_name: "${{ github.event.release.tag_name }}"
92+
base_name: "${{ steps.base.outputs.ref }}"
9693
idf_target: ${{ env.IDF_TARGET }}
9794
idf_version: ${{ env.IDF_VERSION }}
9895
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}

0 commit comments

Comments
 (0)