Skip to content

Commit

Permalink
Create sendgrid.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas authored Dec 3, 2024
1 parent 100dab1 commit 30fae75
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/sendgrid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"

0 comments on commit 30fae75

Please sign in to comment.