Refactor get-host-info action.yml to fix system-id variable assignment

This commit is contained in:
2024-10-01 23:27:45 +02:00
parent f037ec2952
commit a507a884f2
+1 -1
View File
@@ -28,4 +28,4 @@ runs:
TARGET_HOST: ${{ inputs.target-host }} TARGET_HOST: ${{ inputs.target-host }}
run: | run: |
system_id=$(ansible -i ansible/inventory/hosts -b -u $ANSIBLE_USER -m shell -a "read_system_id" $TARGET_HOST | tail -1) system_id=$(ansible -i ansible/inventory/hosts -b -u $ANSIBLE_USER -m shell -a "read_system_id" $TARGET_HOST | tail -1)
echo "system-id=$system-id" >> $GITHUB_OUTPUT echo "system-id=$system_id" >> $GITHUB_OUTPUT