I used to have a script
wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
mkdir sfdx-cli
tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
./sfdx-cli/install
sfdx update
in my github actions to install sfdx cli before any other steps or actions, it was broken today and stopped working.
When I tried to update the script to the following version
wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
mkdir ~/sfdx
tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
export PATH=~/sfdx/bin:$PATH
sfdx update
it still doesn't work because the calling sfdx from the other steps produces an error
line 1: sfdx: command not found
Is there a fix or workaround for that?