fix recently updated PR checker (#195) #152
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: deploy-probot | |
on: | |
workflow_dispatch: | |
push: | |
branches: main | |
paths: | |
- "src/**" | |
- "package*.json" | |
- "serverless.yaml" | |
- ".github/workflows/deploy.yaml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
name: Deploy Probot Application | |
runs-on: ubuntu-latest | |
container: node:18 | |
steps: | |
- name: Get AWS credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: ${{ vars.SERVERLESS_AWS_ROLE_ARN }} | |
aws-region: ${{ vars.AWS_REGION }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Install serverless framework | |
run: npm install -g serverless@3 | |
- name: Test Probot | |
run: npm run test | |
- name: Build Probot | |
run: npm run build | |
- name: Copy release draft template | |
run: cp src/plugins/ReleaseDrafter/draft_template.njk dist/plugins/ReleaseDrafter | |
- name: Deploy Probot | |
run: npm run deploy | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
GPUTESTER_PAT: ${{ secrets.GPUTESTER_PAT }} |