[FL-2778] SubGhz: fix CLI "subghz tx" (#1681)

* SubGhz: fix CLI "subghz tx"
* Fix qoutes in amap workflow
* Github: fix step naming
* fix quotes in PR name again

Co-authored-by: あく <alleteam@gmail.com>
Co-authored-by: DrunkBatya <drunkbatya.js@gmail.com>
This commit is contained in:
Skorpionm
2022-08-30 19:22:24 +04:00
committed by GitHub
parent 8e9043003f
commit e7a5d19f9c
2 changed files with 25 additions and 11 deletions

View File

@@ -45,6 +45,19 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Escape pull request title'
if: github.event_name == 'pull_request'
run: |
import json
import os
import shlex
with open('${{ github.event_path }}') as fh:
event = json.load(fh)
escaped = shlex.quote(event['pull_request']['title'])
with open(os.environ['GITHUB_ENV'], 'a') as fh:
print(f'PULL_NAME={escaped}', file=fh)
shell: python3 {0}
- name: 'Generate prefixes by commit'
id: names
run: |
@@ -58,7 +71,6 @@ jobs:
SHA="$(cut -c -8 <<< "$COMMIT_HASH")"
COMMIT_MSG="$(git log -1 --pretty=format:"%s")"
PULL_ID="${{github.event.pull_request.number}}"
PULL_NAME="${{github.event.pull_request.title}}"
fi
BRANCH_NAME=${REF#refs/*/}
SUFFIX=${BRANCH_NAME//\//_}-$(date +'%d%m%Y')-${SHA}
@@ -78,7 +90,6 @@ jobs:
mkdir artifacts
- name: 'Download build artifacts'
if: ${{ !github.event.pull_request.head.repo.fork }}
run: |
echo "${{ secrets.RSYNC_DEPLOY_KEY }}" > deploy_key;
chmod 600 ./deploy_key;
@@ -112,7 +123,6 @@ jobs:
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 \