Skip to content

Commit

Permalink
Use fly status to lookup hostname
Browse files Browse the repository at this point in the history
Old command no longer works, probably since https://github.com/superfly/flyctl/releases/tag/v0.1.21


    $ fly info --json
    Command "info" is deprecated, Replaced by 'status', 'ips list', and 'services list'

    ...

    Error: unknown flag: --json
  • Loading branch information
dentarg authored May 30, 2023
1 parent b7ea6d4 commit afa5f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
- name: Lookup app hostname
shell: bash
run: |
echo "FLY_HOSTNAME=$(flyctl info --json | jq -r '.Hostname')" >> $GITHUB_ENV
echo "FLY_HOSTNAME=$(flyctl status --json | jq -r '.Hostname')" >> $GITHUB_ENV
env:
FLY_API_TOKEN: "${{ inputs.fly-token }}"

Expand Down

0 comments on commit afa5f8e

Please sign in to comment.