Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download btp cli as part of force-delete action #63

Merged
merged 3 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/actions/force-delete-sap-btp-subaccount/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ inputs:
runs:
using: 'composite'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-btp
- name: Force delete btp resources
shell: bash
run: |
sudo ln -sf bash /bin/sh
curl -LJO https://tools.hana.ondemand.com/additional/btp-cli-linux-amd64-latest.tar.gz --cookie "eula_3_2_agreed=tools.hana.ondemand.com/developer-license-3_2.txt"
tar -zxf btp-cli-linux-amd64-latest.tar.gz --strip-components=1 -C /usr/local/bin
rm -f btp-cli-linux-amd64-latest.tar.gz
echo "BTP CLI downloaded into /usr/local/bin/btp"
btp login --url "${{ inputs.btp_backend_url }}" --user "${{ inputs.btp_user }}" --password "${{ inputs.btp_password }}" --idp "${{ inputs.btp_idp_tenant }}" --subdomain "${{ inputs.btp_global_account }}"
echo "Deleting ${{ inputs.btp_global_account }}/${{ inputs.btp_subaccount_id }}".
btp delete accounts/subaccount "${{ inputs.btp_subaccount_id }}" --global-account "${{ inputs.btp_global_account }}" --force-delete true --confirm true
Expand Down
21 changes: 0 additions & 21 deletions .github/actions/setup-btp/action.yaml

This file was deleted.

Loading