Skip to content

Workflow file for this run

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=""
echo 'start<<EOF' >> $GITHUB_OUTPUT
while read -r line; do
#new_string=$(echo "$line" | sed -E 's/.*-([0-9]+)\.kafka-us-east-1b\.vungle\.io ([0-9]{1,3})$/\1_\2/')
modify=$(echo "$line" | sed -E 's/.*-([0-9]+)\.kafka-us-east-1b\.vungle\.io ([0-9]+)/\1_\2/')
file_content+="$modify"$'\n' # Append line and add a newline character
done < final_result
echo $file_content
echo "content=$file_content" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
# To be continue for run ANsible script
- name: Run Ansible playbook
run: |
echo "${{ steps.get_ref.outputs.content }}"