This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- PE-test | |
jobs: | |
test-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Echo github variables | |
id: get_ref | |
run: | | |
output_file="final_result" | |
echo "brokers-dmx-prod-non-revenue-eks-2.kafka-us-east-1b.vungle.io 66" >> final_result | |
echo "brokers-dmx-prod-non-revenue-eks-3.kafka-us-east-1b.vungle.io 78" >> final_result | |
cat final_result | |
file_content="" | |
while read -r line; do | |
modify=$(echo "$line" | sed 's/ /::/') | |
file_content+="$modify"$'\n' # Append line and add a newline character | |
done < final_result | |
echo $file_content | |
echo "content=$file_content" >> $GITHUB_OUTPUT | |
# To be continue for run ANsible script | |
- name: Run Ansible playbook | |
run: | | |
echo "${{ steps.get_ref.outputs.* }}" | |