Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20 consider including and consuming the qc documentation from dv.templates #22

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,33 @@ jobs:
inst/validation
path: templates

- name: Overwrite quality control scripts with dv.templates ones 🧹
zsigmas marked this conversation as resolved.
Show resolved Hide resolved
run: |
# Paths to the directories
TEMPLATE_DIR="templates/inst/validation"
REPO_DIR="inst/validation"

# Run the diff command and capture the output
DIFF_OUTPUT=$(diff -qr "$TEMPLATE_DIR" "$REPO_DIR")

echo "# Quality control files" | tee -a $GITHUB_STEP_SUMMARY

# Check if the diff command found any differences
if [ -n "$DIFF_OUTPUT" ]; then
echo "Warning: The contents of the directories are different!" | tee -a $GITHUB_STEP_SUMMARY
echo "Modified files:" | tee -a $GITHUB_STEP_SUMMARY
echo "$DIFF_OUTPUT" | tee -a $GITHUB_STEP_SUMMARY
else
echo "The directories are identical." | tee -a $GITHUB_STEP_SUMMARY
fi

# Always overwrite

rm -rf "$REPO_DIR"/*

# Move contents of REPO_DIR to TEMPLATE_DIR
mv "$TEMPLATE_DIR"/* "$REPO_DIR"

- name: Install package dependencies 📄
uses: boehringer-ingelheim/dv.templates/.github/actions/dependencies@main

Expand Down
Loading