This is an automated email from the ASF dual-hosted git repository.
chenli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new bf5a4029f8 fix(ci): change unallowed action to curl for sending email
on ddl change (#4323)
bf5a4029f8 is described below
commit bf5a4029f8a0504c7a6804b376522d1fd10b91b4
Author: Grace Chia <[email protected]>
AuthorDate: Wed Mar 25 21:21:37 2026 -0700
fix(ci): change unallowed action to curl for sending email on ddl change
(#4323)
<!--
Thanks for sending a pull request (PR)! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines:
[Contributing to
Texera](https://github.com/apache/texera/blob/main/CONTRIBUTING.md)
2. Ensure you have added or run the appropriate tests for your PR
3. If the PR is work in progress, mark it a draft on GitHub.
4. Please write your PR title to summarize what this PR proposes, we
are following Conventional Commits style for PR titles as well.
5. Be sure to keep the PR description updated to reflect all changes.
-->
### What changes were proposed in this PR?
<!--
Please clarify what changes you are proposing. The purpose of this
section
is to outline the changes. Here are some tips for you:
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
3. If it is a refactoring, clarify what has been changed.
3. It would be helpful to include a before-and-after comparison using
screenshots or GIFs.
4. Please consider writing useful notes for better and faster reviews.
-->
This PR addresses the issue with the previous PR #4250 where the action
used to send emails was not whitelisted by Apache. To address this, this
PR uses curl to send email.
Example of what the email would look like:
<img width="626" height="345" alt="Screenshot 2026-03-24 at 2 51 19 PM"
src="https://github.com/user-attachments/assets/dfd43ca4-0b08-441e-ba35-5ca6b65b38c6"
/>
### Any related issues, documentation, discussions?
<!--
Please use this section to link other resources if not mentioned
already.
1. If this PR fixes an issue, please include `Fixes #1234`, `Resolves
#1234`
or `Closes #1234`. If it is only related, simply mention the issue
number.
2. If there is design documentation, please add the link.
3. If there is a discussion in the mailing list, please add the link.
-->
Closes #4294
### How was this PR tested?
<!--
If tests were added, say they were added here. Or simply mention that if
the PR
is tested with existing test cases. Make sure to include/update test
cases that
check the changes thoroughly including negative and positive cases if
possible.
If it was tested in a way different from regular unit tests, please
clarify how
you tested step by step, ideally copy and paste-able, so that other
reviewers can
test and check, and descendants can verify in the future. If tests were
not added,
please describe why they were not added and/or why it was difficult to
add.
-->
Tested on my private repository.
### Was this PR authored or co-authored using generative AI tooling?
<!--
If generative AI tooling has been used in the process of authoring this
PR,
please include the phrase: 'Generated-by: ' followed by the name of the
tool
and its version. If no, write 'No'.
Please refer to the [ASF Generative Tooling
Guidance](https://www.apache.org/legal/generative-tooling.html) for
details.
-->
No.
---
.../automatic-email-notif-on-ddl-change.yml | 32 +++++++++++-----------
LICENSE | 4 ---
2 files changed, 16 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/automatic-email-notif-on-ddl-change.yml
b/.github/workflows/automatic-email-notif-on-ddl-change.yml
index 6d0fa62cd6..782deaa2a7 100644
--- a/.github/workflows/automatic-email-notif-on-ddl-change.yml
+++ b/.github/workflows/automatic-email-notif-on-ddl-change.yml
@@ -43,20 +43,20 @@ jobs:
-- 'sql/updates/')
echo "sql_file=$FILE" >> $GITHUB_OUTPUT
- name: Send email
- uses: dawidd6/action-send-mail@v7
- with:
- server_address: smtp.gmail.com
- server_port: 465
- secure: true
- username: ${{secrets.NOREPLY_EMAIL_USERNAME}}
- password: ${{secrets.NOREPLY_EMAIL_PASSWORD}}
- subject: Actions Required After Pulling Latest Update
- to: [email protected]
- from: ${{ github.event.pull_request.user.login }}
- body: |
- Hi all,
- We have merged PR #${{ github.event.pull_request.number }} (${{
github.event.pull_request.html_url }}): ${{github.event.pull_request.title}}.
To incorporate the change, please apply ${{ steps.get_sql_file.outputs.sql_file
}} to your local Postgres instance and run sbt jooqGenerate to generate jooq
classes.
+ run: |
+ curl --ssl-reqd \
+ --url "smtps://smtp.gmail.com:465" \
+ --user "${{ secrets.NOREPLY_EMAIL_USERNAME }}:${{
secrets.NOREPLY_EMAIL_PASSWORD }}" \
+ --mail-from "${{ secrets.NOREPLY_EMAIL_USERNAME }}" \
+ --mail-rcpt "[email protected]" \
+ --upload-file - <<EOF
+ From: ${{ secrets.NOREPLY_EMAIL_USERNAME }}
+ To: [email protected]
+ Reply-To: [email protected]
+ Subject: Actions Required After Pulling Latest Update
+ Content-Type: text/html
- Best,
- ${{ github.event.pull_request.user.login }}
- reply_to: [email protected]
\ No newline at end of file
+ <p>Hi all,</p>
+ <p>We have merged PR #${{ github.event.pull_request.number }} (<a
href="${{ github.event.pull_request.html_url }}">${{
github.event.pull_request.html_url }}</a>): ${{ github.event.pull_request.title
}}. To incorporate the change, please apply ${{
steps.get_sql_file.outputs.sql_file }} to your local Postgres instance and run
<code>sbt jooqGenerate</code> to generate jooq classes.</p>
+ <p>Best,<br>${{ github.event.pull_request.user.login }}</p>
+ EOF
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 27b73f30b8..6734840ae8 100644
--- a/LICENSE
+++ b/LICENSE
@@ -231,10 +231,6 @@ This product bundles code derived from TypeFox
monaco-languageclient:
Copyright (c) 2024 TypeFox and others.
Source: https://github.com/TypeFox/monaco-languageclient
-This product incorporates dawidd6-action-send-mail as a GitHub Actions
workflow dependency:
- Copyright (c) 2020 Dawid Dziurla
- Source: https://github.com/dawidd6/action-send-mail
-
This product includes SVG icons from SVGRepo:
- frontend/src/assets/svg/operator-view-result.svg
- frontend/src/assets/svg/operator-reuse-cache-valid.svg