Skip to content

Add slot "has_training_resource" #71

Add slot "has_training_resource"

Add slot "has_training_resource" #71

Workflow file for this run

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 }}