Skip to content

Commit

Permalink
meaningless changes to trigger workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Apr 9, 2024
1 parent f2d00b6 commit 124cd82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/buildAndSendSignatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,12 @@ jobs:
fi
echo "signatures_to_build=${signatures_to_build}"
echo "signatures_to_build=${signatures_to_build}" >> $GITHUB_OUTPUT
# Build the list of files that have to be sent via email
file_to_send=""
for file in ${signatures_to_build}; do
files_to_send="./out/${file}.html ${files_to_send}"
done
echo "files_to_send=${files_to_send}"
echo "files_to_send=${files_to_send}" >> $GITHUB_OUTPUT
- name: List changed files
run: |
echo "Signatures to build:"
for file in ${{ steps.changed-files.outputs.signatures_to_build }}; do
echo "$file"
done
echo "Files to send:"
for file in ${{ steps.changed-files.outputs.files_to_send }}; do
echo "$file"
done
- name: Substitute marks (implicit parameters in env)
run: |
chmod u+x src/substituteMarks.sh
Expand Down
2 changes: 1 addition & 1 deletion src/sendEmails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for signature in $1; do
echo pointer is $pointer
email_value="${!pointer}"
echo value is $email_value
echo a secret is $INFORMATICS_EMAIL
echo a secret is $INFORMATICS_EMAIL ${EMAIL_USERNAME}
echo curl --url 'smtps://smtp.gmail.com:465' --ssl-reqd --mail-from "${EMAIL_USERNAME}" --mail-rcpt "${email_value}" --user "${EMAIL_USERNAME}:${EMAIL_PASSWORD}" --upload-file "${PROJECT_FOLDER}/out/${signature}.html"
curl --url 'smtps://smtp.gmail.com:465' \
--ssl-reqd \
Expand Down
2 changes: 2 additions & 0 deletions src/substituteMarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

PROJECT_FOLDER="$(cd "$(dirname "$(realpath "$0")")/../" &>/dev/null && pwd)"

env

# Substitute each mark by its value using indirect expansion
marks=("NAME" "EMAIL" "POSITION" "LINKEDIN")
for i in $@; do
Expand Down
1 change: 1 addition & 0 deletions templates/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,4 @@
</body>
</html>


0 comments on commit 124cd82

Please sign in to comment.