Dev/thibault.dewailly/ttyrec stealth stdout pattern #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: References check | |
on: | |
- push | |
- pull_request | |
jobs: | |
reference_diff: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Install puppet-strings | |
run: | | |
sudo apt update | |
sudo apt install -y puppet puppet-strings | |
- name: Generate temporary strings | |
run: | | |
puppet strings generate --format markdown --out /tmp/references.md | |
- name: Compare the actual and expected | |
run: | | |
if ! cmp "REFERENCE.md" "/tmp/references.md"; then | |
diff -u REFERENCE.md /tmp/references.md | |
echo "Diff between expected references and the commited file, please regenerate references \ | |
with puppet strings generate --format markdown --out REFERENCE.md and commit them" | |
exit 1 | |
else | |
echo "References are up to date" | |
fi |