Skip to content

Commit

Permalink
remove temp json file when done
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-stephens committed Jan 10, 2025
1 parent f74a393 commit dde0137
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/check_tlsa_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,16 @@ jobs:
black "$TEST_FILE"
echo "Updated $TEST_FILE with properly indented TLSA records."
# Check if the file was updated
if ! git diff --exit-code "$TEST_FILE"; then
echo "File updated."
echo "file_updated=true" >> $GITHUB_ENV
else
echo "No changes detected."
fi
# Check if the file was updated
if ! git diff --exit-code "$TEST_FILE"; then
echo "File updated."
echo "file_updated=true" >> $GITHUB_ENV
else
echo "No changes detected."
fi
# Cleanup temp file
rm tlsa.json
- name: Commit and push changes
if: env.file_updated == 'true'
Expand Down

0 comments on commit dde0137

Please sign in to comment.