Skip to content

Commit

Permalink
Perform Fleet server version lookup just-in-time
Browse files Browse the repository at this point in the history
  • Loading branch information
ninxsoft committed Aug 13, 2024
1 parent df3827a commit 709b8af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/gitops-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ runs:
- name: Install fleetctl
shell: bash
working-directory: ${{ inputs.working-directory }}
run: npm install -g fleetctl
run: |
FLEET_VERSION="$(curl "$FLEET_URL/api/v1/fleet/version" --header "Authorization: Bearer $FLEET_API_TOKEN" --silent | jq --raw-output '.version')"
npm install -g fleetctl@$FLEET_VERSION
- name: Configure fleetctl
shell: bash
Expand Down

0 comments on commit 709b8af

Please sign in to comment.