This repository contains a GitHub Actions workflow that triggers the Sectors API reactivation outreach endpoint. The workflow is designed to run daily and securely call the API to send reactivation emails to inactive users based on the configured outreach schedule.
The GitHub Action in this repository uses cURL to trigger the reactivation endpoint of your Sectors API. It is built to:
- Run on a daily schedule.
- Securely use secrets (such as
ACTION_SECRET_KEY) to call the API. - Help automate the process of sending reactivation emails to inactive users.
Before using the workflow, add the following secrets to your GitHub repository:
- ACTION_SECRET_KEY:
The secret key that the API endpoint expects to authenticate the request.
To add a secret:
- Navigate to your GitHub repository.
- Click on Settings.
- Go to Secrets and variables > Actions.
- Click New repository secret and add the secret name and value.
The workflow file is located at .github/workflows/email_reactivation.yml. It is configured to run daily via a cron job and can also be manually triggered.
The workflow performs the following steps:
- Checks out the repository.
- Uses
curlto send a POST request to the reactivation API endpoint. - Includes the secret
ACTION_SECRET_KEYin the header for secure access.