Skip to content

Added spacy to python3.11 pipeline #217

Added spacy to python3.11 pipeline

Added spacy to python3.11 pipeline #217

on: issue_comment
jobs:
pr_commented:
# This job only runs if Keith created the comment and addressed it to @Klayersbot,
name: PR comment to Klayers bot
if: ${{ github.event.comment.author_association == 'OWNER' && github.event.comment.user.id == 795867 && startsWith(github.event.comment.body, '@KlayersBot') }}
runs-on: ubuntu-latest
steps:
- run: |
echo A comment on PR $NUMBER from $USER at $HTML_URL, content $CONTENT
env:
NUMBER: ${{ github.event.issue.number }}
HTML_URL: ${{ github.event.issue.html_url }}
USER: ${{ github.event.comment.user.login }}
CONTENT: ${{ github.event.comment.body }}
- name: Set up Git repository
uses: actions/checkout@v3
- name: Setup AWS environment for Klayers-default
run: |
AWS_ENV=Klayers-defaultp38 >> $GITHUB_ENV
GITHUB_ROLE_ARN=$(cat ./.github/workflows/role_arns.json | jq -r --arg arg $AWS_ENV '.github_role_arn | .[$arg]')
AWS_REGION=$(cat ./pipeline/Terraform/terraform.tfvars.json | jq -r --arg arg $AWS_ENV '.aws_region | .[$arg]')
echo AWS_ROLE_ARN=$GITHUB_ROLE_ARN >> $GITHUB_ENV
echo AWS_DEFAULT_REGION=$AWS_REGION >> $GITHUB_ENV
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: ${{ env.AWS_DEFAULT_REGION }}
role-to-assume: ${{ env.AWS_ROLE_ARN }}
role-duration-seconds: 600
role-session-name: on-issue-commented-${{ env.AWS_ENV }}
- name: invoke lambda
run: aws lambda invoke --function-name