How can I force a deploy in the GitHub action?

I am trying to do a deploy to different fly app (to the one in my fly.toml) and the Github Action is requires input to say this is ok, so the action fails. How can I tell fly that this is intended?

WARN app flag 'wild-bush-736' does not match app name in config file 'my-other-app'

I am using this in Github Actions.

- name: Deploy
        uses: superfly/flyctl-actions@1.1
          args: "deploy --build-arg TOKEN=${TOKEN} -a my-other-app"

You need to remove the name in the fly.toml, that is the only way I have found. You will need to specify the app name every time you run the command locally though.

1 Like