Add suggestion for frequent rotation of secret keys #390
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto dev-docs Commenter | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add preview URL to PR | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
const issue_number = context.issue.number; | |
const message = `Preview this PR here: https://dev-docs.revenuecat.com/pr-${issue_number}/`; | |
github.rest.issues.createComment({ | |
...context.repo, | |
issue_number: issue_number, | |
body: message | |
}); |