I am using the basic example to set up a review app workflow but keep getting this error:
Error: Not authorized to deploy this app.
The yml is the same except I added a FLY_APP under env:
FLY_APP: my-app-pr-${{ github.event.number }}
and under the deploy step:
with:
name: ${{ env.FLY_APP }}
Here is a snippet for the action console output:
+ flyctl status --app my-app-name-pr-1
Error: failed to get app: Could not find App "my-app-name-pr-1"
+ cp fly.toml fly.toml.bak
+ flyctl launch --no-deploy --copy-config --name my-app-name-pr-1 --image --region iad --org personal
An existing fly.toml file was found for app my-app-name
Scanning source code
Detected a Dockerfile app
Creating app in /github/workspace
We're about to launch your app on Fly.io. Here's what you're getting:
Organization: <name> (specified on the command line)
Name: my-app-name-pr-1 (specified on the command line)
Region: <region> (specified on the command line)
App Machines: shared-cpu-1x, 512MB RAM (from your fly.toml)
Postgres: <none> (not requested)
Redis: <none> (not requested)
Tigris: <none> (not requested)
Error: Not authorized to deploy this app.