telemetry updates #8719
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 Research Mapping Approved Label | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled, unlabeled] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check_research_mapping_label_job: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'demisto/content' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" # The Python version set here is the minimum supported by content, if you change it here, please change all the places containing this comment. | |
| - name: Setup Poetry | |
| uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9 | |
| - name: Install python dependencies | |
| run: | | |
| poetry install --with github-actions | |
| - name: set pythonpath | |
| run: | | |
| echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3 disable-secrets-detection | |
| with: | |
| files: | | |
| Packs/**/ModelingRules/** | |
| Packs/**/ParsingRules/** | |
| since_last_remote_commit: false | |
| - name: Check if research-mapping-approve label exists | |
| id: check_label | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
| run: | | |
| echo "Checking label research-mapping-approve for: $PR_NUMBER" | |
| cd .github/github_workflow_scripts | |
| poetry run python check_if_research_mapping_approved_label_exists.py --pr_number $PR_NUMBER --github_token $GITHUB_TOKEN --changed_files $CHANGED_FILES |