Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 10 additions & 2 deletions .github/workflows/automatic-email-notif-on-ddl-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,17 @@ jobs:
FILE=$(git diff --name-only --diff-filter=A \
${{ github.event.pull_request.base.sha }} \
${{ github.event.pull_request.merge_commit_sha }} \
-- 'sql/updates/')
echo "sql_file=$FILE" >> $GITHUB_OUTPUT
-- 'sql/updates/*.sql')
# git diff prints one path per line, so a PR adding two migrations
# would put a bare second line in $GITHUB_OUTPUT -- no key=, which
# makes the runner reject the whole file and the step fail.
echo "sql_file=${FILE//$'\n'/, }" >> $GITHUB_OUTPUT
# A ddl-change PR need not add a migration: it may edit or delete files
# under sql/updates/, add a non-.sql file such as this README, or touch
# a .sql file elsewhere in the repo. Any of those leaves operators
# nothing to apply, so no instruction goes out.
- name: Send email
if: steps.get_sql_file.outputs.sql_file != ''
run: |
curl --ssl-reqd \
--url "smtps://smtp.gmail.com:465" \
Expand Down
54 changes: 0 additions & 54 deletions sql/updates/01.sql

This file was deleted.

77 changes: 0 additions & 77 deletions sql/updates/02.sql

This file was deleted.

44 changes: 0 additions & 44 deletions sql/updates/03.sql

This file was deleted.

43 changes: 0 additions & 43 deletions sql/updates/04.sql

This file was deleted.

33 changes: 0 additions & 33 deletions sql/updates/05.sql

This file was deleted.

62 changes: 0 additions & 62 deletions sql/updates/06.sql

This file was deleted.

Loading
Loading