Skip to content

Commit 381f58c

Browse files
committed
cleanup
1 parent eaca892 commit 381f58c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
PY_COLORS: '1'
3737
ANSIBLE_FORCE_COLOR: '1'
3838
pull_request_event: ${{ github.event.pull_request.number }}
39+
- name: Adding markdown
40+
run: echo '### Hello world! :rocket:' >> $GITHUB_STEP_SUMMARY
3941
# workshop_job_provision:
4042
# runs-on: ubuntu-latest
4143
# name: Workshop Provision

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ tee playbook.yml << EOF
166166
debug:
167167
var: playbook_output.json.content
168168
169+
- name: copy playbook output from Automation controller to file
170+
when: job_template_var|length > 0 or workflow_template_var|length > 0
171+
ansible.builtin.copy:
172+
content: "{{ playbook_output.json.content }}"
173+
dest: job_output.txt
174+
169175
- name: revert project settings back to original
170176
awx.awx.project:
171177
name: "{{ project_var }}"
@@ -198,4 +204,7 @@ else
198204
exit 1
199205
fi
200206

207+
GITHUB_STEP_SUMMARY="$GITHUB_STEP_SUMMARY \n $(<read_file.txt)"
208+
209+
201210
echo "END OF AAP - Automation controller Github Action"

0 commit comments

Comments
 (0)