Skip to content

Add GitHub Actions step to validate Postmark credentials#3

Merged
sokripon merged 3 commits intomainfrom
copilot/add-check-postmark-info-action
Jan 15, 2026
Merged

Add GitHub Actions step to validate Postmark credentials#3
sokripon merged 3 commits intomainfrom
copilot/add-check-postmark-info-action

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

Tests require POSTMARK_API_TOKEN and SENDER_EMAIL secrets to send test emails, but fail cryptically when these aren't configured.

Changes

  • Added pre-test validation step in .github/workflows/tests.yml that checks both secrets are set
  • Fails fast with clear error message before test execution if credentials missing
  • Uses environment variables to prevent secret exposure in logs
- name: Check Postmark credentials
  env:
    POSTMARK_API_TOKEN: ${{ secrets.POSTMARK_API_TOKEN }}
    SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}
  run: |
    if [ -z "$POSTMARK_API_TOKEN" ]; then
      echo "Error: POSTMARK_API_TOKEN is not set in repository secrets"
      exit 1
    fi
    if [ -z "$SENDER_EMAIL" ]; then
      echo "Error: SENDER_EMAIL is not set in repository secrets"
      exit 1
    fi
Original prompt

Create a separate action to check if the postmark informationa are set a


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add action to check if postmark information is set Add GitHub Actions step to validate Postmark credentials Jan 15, 2026
Copilot AI requested a review from sokripon January 15, 2026 22:53
@sokripon sokripon marked this pull request as ready for review January 15, 2026 22:57
@sokripon sokripon merged commit ad90351 into main Jan 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants