Send a SNS Topic via GitHub Actions
-
Set up your credentials as secrets in your repository settings using
AWS_REGION
,AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
-
Add the following to your workflow
- name: Publish SNS Topic
uses: nothingalike/[email protected]
with:
MESSAGE: "message"
TOPIC_ARN: "arn:aws:sns:[your region]:[your account id]:[your topic name]"
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Required This is your serialized message
Required This is the ARN of the SNS Topic you are publishing
A AWS Region. Can alternatively be stored in environment
A AWS Access Key ID. Can alternatively be stored in environment
A AWS Secret Access Key. Can alternatively be stored in environment
The SID of the message resource associated with the Published Topic.
This GitHub Action uses a couple of Node.js modules to work.
License and other copyright information for each module are included in the release branch of each action version under node_modules/{module}
.
More information for each package can be found at https://www.npmjs.com/package/{package}