Add Action for updating synapse tables #68
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 PR for new entity" | |
on: | |
workflow_dispatch: | |
issues: | |
types: [ opened ] | |
jobs: | |
create_new_entity: | |
if: contains(github.event.issue.labels.*.name, 'New') | |
name: Create PR for new entity | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ 3.9 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/[email protected] | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Process the issue | |
id: process_issue | |
run: poetry run python ./.github/scripts/process_issue.py --github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
branch-suffix: short-commit-hash | |
labels: New | |
body: ${{ steps.process_issue.outputs.PR_BODY }} | |
title: ${{ steps.process_issue.outputs.PR_TITLE }} |