Skip to content

Commit

Permalink
remove unnecessary branch selection on manual workflow triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Valacco authored and DishenWang2023 committed May 7, 2024
1 parent f097f67 commit 2315692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ai-deploy-branch-env.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: AI Deploy Branch Environment

on:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy"
required: true
on: workflow_dispatch

env:
AWS_REGION: us-east-1
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ai-destroy-branch-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: AI Destroy branch environment

on:
workflow_dispatch:
inputs:
branch:
description: "Branch environment to Destroy"
required: true
pull_request:
types: [closed]

Expand Down Expand Up @@ -55,8 +51,8 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

defaults:
run:
working-directory: ./apps/ai/server
run:
working-directory: ./apps/ai/server

steps:
- name: Check out code
Expand Down Expand Up @@ -138,4 +134,4 @@ jobs:
mode: stop
github-token: ${{ secrets.SUBMODULE_UPDATE_TOKEN }}
label: ${{ needs.start-self-hosted-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-self-hosted-runner.outputs.ec2-instance-id }}
ec2-instance-id: ${{ needs.start-self-hosted-runner.outputs.ec2-instance-id }}

0 comments on commit 2315692

Please sign in to comment.