merge_report.yml 1.2 KB

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