Skip to content

[Marketplace Contribution] Community Common Dashboards - Content Pack Update #20393

[Marketplace Contribution] Community Common Dashboards - Content Pack Update

[Marketplace Contribution] Community Common Dashboards - Content Pack Update #20393

name: Sync contributor base branch on change
on:
pull_request_target:
types:
- edited
- synchronize
branches:
- "contrib/**"
permissions:
contents: read
jobs:
sync_contributor_base_branch:
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: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Setup Poetry
uses: Gr1N/setup-poetry@v9
- name: Install Python Dependencies
run: |
poetry install --with github-actions
- name: Sync Base Branch to Master
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
run: |
echo "Updating contribution base branch (contrib/*)"
cd .github/github_workflow_scripts
poetry run ./sync_contrib_base.py --branch_name ${{ github.event.pull_request.base.ref }}
echo "Finished updating base branch"