Skip to content

Commit

Permalink
fixing fly app name invalid characters
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed Jun 11, 2024
1 parent 58a41f2 commit 3cefce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ inputs:
fly-app-name:
description: 'Fly.io App Name'
required: false
default: |
echo "${{ github.repository_owner }}_${{ github.event.repository.name }}" | tr '-' '_'
default: "${{ github.repository_owner }}_${{ github.event.repository.name }}"
fly-region:
description: 'Fly.io Region'
required: false
Expand Down
1 change: 1 addition & 0 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ deploy() {
cp /extras/config.json /fly/config.json
setup_flyctl
cd /fly
export FLY_APP_NAME="$(echo $FLY_APP_NAME | tr '-' '_')"
fly apps list | tail -n +2 | awk '{print $1}' | grep -w tailcall > /dev/null && fly apps destroy $FLY_APP_NAME --auto-confirm || echo "App not found"
create_fly_toml
flyctl launch --local-only --copy-config
Expand Down

0 comments on commit 3cefce6

Please sign in to comment.