From ddd5d5a535ea29854b9ae1bbf4b80adb7c826746 Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Tue, 23 Aug 2022 14:48:39 +0300 Subject: [PATCH] fix Amap reports outside pull-request (#1642) --- .github/workflows/amap_analyse.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/amap_analyse.yml b/.github/workflows/amap_analyse.yml index 3bfcba2c..dd903e2e 100644 --- a/.github/workflows/amap_analyse.yml +++ b/.github/workflows/amap_analyse.yml @@ -103,13 +103,15 @@ jobs: export COMMIT_HASH="${{steps.names.outputs.commit-hash}}" export COMMIT_MSG="${{steps.names.outputs.commit-msg}}" export BRANCH_NAME="${{steps.names.outputs.branch-name}}" - export PULL_ID="${{steps.names.outputs.pull-id}}" - export PULL_NAME="${{steps.names.outputs.pull-name}}" export BSS_SIZE="$(get_size ".bss")" export TEXT_SIZE="$(get_size ".text")" export RODATA_SIZE="$(get_size ".rodata")" export DATA_SIZE="$(get_size ".data")" export FREE_FLASH_SIZE="$(get_size ".free_flash")" + if [[ ${{ github.event_name }} == 'pull_request' ]]; then + export PULL_ID="${{steps.names.outputs.pull-id}}" + export PULL_NAME="${{steps.names.outputs.pull-name}}" + fi python3 -m pip install mariadb python3 scripts/amap_mariadb_insert.py \ ${{ secrets.AMAP_MARIADB_USER }} \