Rapid7 IntSight Adoption complete #3161
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: Create Internal PR from Merged External PR | |
on: | |
pull_request_target: | |
types: [closed] | |
branches: | |
- contrib/** | |
jobs: | |
create_internal_pr: | |
runs-on: ubuntu-latest | |
if: github.repository == 'demisto/content' && github.event.action == 'closed' && github.event.pull_request.merged == true && github.event.pull_request.head.repo.fork == true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Print Context | |
run: | | |
echo "$GITHUB_CONTEXT" | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
- name: Install Python Dependencies | |
run: | | |
poetry install --with ci | |
- name: Create Internal PR | |
env: | |
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }} | |
EVENT_PAYLOAD: ${{ toJson(github.event) }} | |
run: | | |
echo "Creating an internal PR from original merged external PR ${{ github.event.pull_request.html_url }}" | |
cd Utils/github_workflow_scripts | |
poetry run ./create_internal_pr.py | |
echo "Finished Creating Internal PR" |