mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-20 11:51:48 +03:00
fd8607398d
* Github: unshallow on decontamination * Github: fix syntax * Github: decontaminate without full tree * Github: update decontaminate action in all workflows
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: 'Check FL ticket in PR name'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
env:
|
|
FBT_TOOLCHAIN_PATH: /runner/_work
|
|
|
|
jobs:
|
|
merge_report:
|
|
runs-on: [self-hosted,FlipperZeroShell]
|
|
steps:
|
|
- name: 'Decontaminate previous build leftovers'
|
|
run: |
|
|
if [ -d .git ]; then
|
|
git submodule status || (
|
|
git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
|
|
do
|
|
git rm -rf --cached "$submodule"
|
|
done
|
|
)
|
|
fi
|
|
|
|
- name: 'Checkout code'
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 1
|
|
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: |
|
|
source scripts/toolchain/fbtenv.sh
|
|
python3 -m pip install slack_sdk
|
|
python3 scripts/merge_report_qa.py \
|
|
${{ secrets.QA_REPORT_SLACK_TOKEN }} \
|
|
${{ secrets.QA_REPORT_SLACK_CHANNEL }}
|
|
|