Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
byang committed Nov 8, 2024
1 parent b8bd76e commit 1ce96e6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ jobs:
# To be continue for run ANsible script
- name: Run Ansible playbook
run: |
echo "${{ env.content }}"
for content in "${{ steps.get_ref.outputs.content }}"
do
echo "$content"
# echo "${{ env.content }}"
echo -e "${{ env.content }}" | while read -r line; do
# Use sed to extract the two parts and echo them separately
first_part=$(echo "$line" | sed -E 's/^([0-9]+)_.*/\1/')
second_part=$(echo "$line" | sed -E 's/^[0-9]+_(.*)/\1/')
# Echo the parts separately
echo "First part: $first_part"
echo "Second part: $second_part"
done

0 comments on commit 1ce96e6

Please sign in to comment.