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: Contribution Form Filled label verification | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled, unlabeled] | |
| permissions: | |
| pull-requests: read | |
| jobs: | |
| contribution_form_filled_verification: | |
| runs-on: ubuntu-latest | |
| # This status check only runs for: forked PRS that don't contain the '[Marketplace Contribution]' in their title and the head branch is not a test branch. | |
| if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false && contains(github.event.pull_request.title, '[Marketplace Contribution]') == false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup 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@v9 | |
| - name: Install Python Dependencies | |
| run: | | |
| poetry install --with github-actions | |
| - name: Check if contribution form needs to be filled | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| echo "Checking if contribution form needs to be filled for PR: $PR_NUMBER" | |
| cd .github/github_workflow_scripts | |
| poetry run ./check_if_needs_to_fill_contribution_form.py --pr_number $PR_NUMBER --github_token $GITHUB_TOKEN |