2022-12-10 13:10:51 +00:00
|
|
|
name: 'Check FL ticket in PR name'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
2022-12-19 13:07:23 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
FBT_TOOLCHAIN_PATH: /runner/_work
|
|
|
|
|
2022-12-10 13:10:51 +00:00
|
|
|
jobs:
|
|
|
|
merge_report:
|
|
|
|
runs-on: [self-hosted,FlipperZeroShell]
|
|
|
|
steps:
|
|
|
|
- name: 'Decontaminate previous build leftovers'
|
|
|
|
run: |
|
|
|
|
if [ -d .git ]; then
|
|
|
|
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
- name: 'Checkout code'
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
|
|
|
- name: 'Get commit details'
|
|
|
|
run: |
|
|
|
|
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
|
|
|
|
TYPE="pull"
|
|
|
|
elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
|
|
|
TYPE="tag"
|
|
|
|
else
|
|
|
|
TYPE="other"
|
|
|
|
fi
|
|
|
|
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE"
|
|
|
|
|
|
|
|
- name: 'Check ticket and report'
|
|
|
|
run: |
|
2022-12-19 13:07:23 +00:00
|
|
|
source scripts/toolchain/fbtenv.sh
|
2022-12-10 13:10:51 +00:00
|
|
|
python3 -m pip install slack_sdk
|
|
|
|
python3 scripts/merge_report_qa.py \
|
|
|
|
${{ secrets.QA_REPORT_SLACK_TOKEN }} \
|
|
|
|
${{ secrets.QA_REPORT_SLACK_CHANNEL }}
|
|
|
|
|