File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 control_plane_url : ${{ secrets.CONTROL_PLANE_URL }}
2323 username : ${{ secrets.FACETS_USERNAME }}
2424 token : ${{ secrets.FACETS_API_TOKEN }}
25+ ftf_cli_version : 0.2.1 # Optional: Specify only if you want to use a specific version of the CLI
2526` ` `
2627
2728---
5051 control_plane_url : ${{ secrets.CONTROL_PLANE_URL }}
5152 username : ${{ secrets.FACETS_USERNAME }}
5253 token : ${{ secrets.FACETS_API_TOKEN }}
54+ ftf_cli_version : 0.2.1 # Optional: Specify only if you want to use a specific version of the CLI
5355` ` `
5456
5557## 🌱 Enabling Dry Run Mode
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ inputs:
3636 description : " Whether the modules registered in preview mode are publishable or not. This is not required if publish is set to true."
3737 required : false
3838 default : " false"
39+ ftf_cli_version :
40+ description : " Facets CLI version to use"
41+ required : false
42+ default : " "
3943
4044runs :
4145 using : " composite"
6266 sudo apt-get install -y python3 python3-pip curl unzip jq git
6367 curl -fsSL https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_amd64.zip -o terraform.zip
6468 unzip terraform.zip && mv terraform /usr/local/bin/ && rm terraform.zip
65- pip install git+https://github.com/Facets-cloud/module-development-cli.git
69+ if [ -z "${{ inputs.ftf_cli_version }}" ]; then
70+ echo "🔍 Installing latest version of ftf-cli..."
71+ pip install ftf-cli
72+ else
73+ echo "🔍 Installing ftf-cli version ${{ inputs.ftf_cli_version }}..."
74+ pip install ftf-cli==${{ inputs.ftf_cli_version }}
75+ fi
6676
6777 - name : Identify All Facets Modules (All Modules)
6878 if : inputs.all-modules == 'true'
You can’t perform that action at this time.
0 commit comments