Sync contributor base branch #196
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: Sync contributor base branch | |
on: | |
schedule: | |
# runs at minute 0 of the 0th hour every day. | |
- cron: '0 0 * * *' | |
permissions: | |
contents: read | |
jobs: | |
sync_contributor_base_branch: | |
runs-on: ubuntu-latest | |
if: github.repository == 'demisto/content' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Install Python Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv==2021.5.29 | |
- name: Sync Base Branch to Master | |
env: | |
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }} | |
run: | | |
echo "Updating contribution base branches (contrib/*)" | |
cd Utils/github_workflow_scripts | |
pipenv sync | |
pipenv run ./sync_contrib_base.py | |
echo "Finished updating base branches" |