This action runs ansible-inventory-diff against a comparison git reference and returns the difference in variables between the two
The base reference for the diff comparison (default origin/main
)
Number of lines at which to truncate the diff output for the snippet (default 200)
The full output of the diff
A truncated version of the diff suitable for a github comment
on: [push]
jobs:
ansible_inventory_diff:
runs-on: ubuntu-latest
name: ansible-inventory-diff
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run ansible inventory diff
id: run
uses: Skedulo/[email protected]
with:
base-ref: origin/main
- name: ansible inventory diff
run: echo "${{ steps.run.outputs.result }}"