[Marketplace Contribution] Exabeam - Content Pack Update #13704
Workflow file for this run
This file contains 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: Partner-Approved label verification | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled, unlabeled] | |
permissions: | |
contents: read | |
jobs: | |
check_label_job: | |
runs-on: ubuntu-latest | |
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Install python dependencies | |
run: | | |
poetry install --with ci | |
- name: set pythonpath | |
run: | | |
echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
- name: Check if partner-approved label exists | |
id: check_label | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo "Checking label Partner-Approved for: $PR_NUMBER" | |
cd Utils/github_workflow_scripts | |
poetry run python check_if_partner_approved_label_exists.py --pr_number $PR_NUMBER --github_token $GITHUB_TOKEN |