fix: stuff #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Check FL ticket in PR name' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| FBT_TOOLCHAIN_PATH: /runner/_work | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: write-all | |
| jobs: | |
| merge_report: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Wipe workspace' | |
| run: sudo find ./ -mount -maxdepth 1 -exec rm -rf {} \; | |
| - name: 'Checkout code' | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: 'Get commit details' | |
| run: | | |
| set -e | |
| sudo -i | |
| if [[ ${{ github.event_name }} == 'pull_request' ]]; then | |
| TYPE="pull" | |
| elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then | |
| TYPE="tag" | |
| else | |
| TYPE="other" | |
| fi | |
| sudo python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE" || cat "${{ github.event_path }}" | |
| - name: 'Check ticket and report' | |
| run: | | |
| set -e | |
| sudo -i | |
| source scripts/toolchain/fbtenv.sh | |
| python3 -m pip install slack_sdk | |
| sudo python3 scripts/merge_report_qa.py \ | |
| ${{ secrets.QA_REPORT_SLACK_TOKEN }} \ | |
| ${{ secrets.QA_REPORT_SLACK_CHANNEL }} | |