Skip to content

Bump uvicorn from 0.23.2 to 0.24.0.post1 #2

Bump uvicorn from 0.23.2 to 0.24.0.post1

Bump uvicorn from 0.23.2 to 0.24.0.post1 #2

name: TEST-ENV-CLEANUP
# Build and deploy test instance for every pull request
on:
pull_request:
types: [closed, unlabeled]
branches: ["**"]
jobs:
cleanup:
name: Remove test environment deployment
if: ${{ ((github.event.action == 'unlabeled') && (github.event.label.name == 'test deployment')) || ((github.event.action == 'closed') && contains(github.event.pull_request.labels.*.name, 'test deployment')) }}
runs-on: ubuntu-latest
steps:
- uses: rlespinasse/github-slug-action@3.1.0
- name: Invoke deployment lambda
uses: gagoar/invoke-aws-lambda@v3.3.0
with:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGION: us-east-1
FunctionName: test-env-manager
Payload: >-
{
"action": "${{ github.event.action }}",
"label": "${{ env.GITHUB_HEAD_REF_SLUG_URL }}",
"image": "${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/saleor-testenvs:${{ env.GITHUB_HEAD_REF_SLUG_URL }}"
}
LogType: Tail
- name: Mark deployment as deactivated
uses: bobheadxi/deployments@v0.4.2
with:
step: deactivate-env
token: ${{ secrets.GITHUB_TOKEN }}
env: ${{ env.GITHUB_HEAD_REF_SLUG_URL }}