merge_report.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: 'Check FL ticket in PR name'
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. env:
  7. FBT_TOOLCHAIN_PATH: /runner/_work
  8. jobs:
  9. merge_report:
  10. runs-on: [self-hosted,FlipperZeroShell]
  11. steps:
  12. - name: 'Decontaminate previous build leftovers'
  13. run: |
  14. if [ -d .git ]; then
  15. git submodule status || (
  16. git ls-files --stage | egrep '^160000' | awk '{print $4}' | while read submodule
  17. do
  18. git rm -rf --cached "$submodule"
  19. done
  20. )
  21. fi
  22. - name: 'Checkout code'
  23. uses: actions/checkout@v3
  24. with:
  25. fetch-depth: 1
  26. ref: ${{ github.event.pull_request.head.sha }}
  27. - name: 'Get commit details'
  28. run: |
  29. if [[ ${{ github.event_name }} == 'pull_request' ]]; then
  30. TYPE="pull"
  31. elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
  32. TYPE="tag"
  33. else
  34. TYPE="other"
  35. fi
  36. python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE"
  37. - name: 'Check ticket and report'
  38. run: |
  39. source scripts/toolchain/fbtenv.sh
  40. python3 -m pip install slack_sdk
  41. python3 scripts/merge_report_qa.py \
  42. ${{ secrets.QA_REPORT_SLACK_TOKEN }} \
  43. ${{ secrets.QA_REPORT_SLACK_CHANNEL }}