-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.55 KB
/
sendgrid.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: send-email
on:
workflow_dispatch:
jobs:
send-email:
# runs-on: ubuntu-latest
# steps:
# - uses: githubofkrishnadhas/github-access-using-githubapp@v2
# id: token-generation
# with:
# github_app_id: ${{ secrets.TOKEN_GENERATOR_APPID }}
# github_app_private_key: ${{ secrets.TOKEN_GENERATOR_PRIVATE_KEY }}
# - name: Checkout Repository
# uses: actions/checkout@v4
# with:
# repository: 'devwithkrishna/sendgrid-docker-image'
# token: ${{ steps.token-generation.outputs.token }}
# fetch-depth: 1
# - name: set up python
# uses: actions/setup-python@v2
# with:
# python-version: '3.11'
# - name: package installations
# run: |
# pip install poetry
# poetry -v install --no-ansi --no-interaction --only main
# - name: run python program
# env:
# SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
# run: |
# poetry run python3 sendgrid_email.py --subject "${{ inputs.subject }}" --recepient "${{ inputs.recepient }}" --email_body "${{ inputs.email_body }}" --cced "${{ inputs.cced }}"
uses: devwithkrishna/sendgrid-docker-image/.github/workflows/send_email.yaml@main
secrets: inherit
with:
subject: "shdbadbsadh"
recepient: "[email protected]"
email_body: "awdsadsd"
cced: "[email protected]"
# - name: program execution completed
# run: echo "program execution completed"