mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-06 00:33:39 +00:00
Update example in docs (#102)
This commit is contained in:
13
README.md
13
README.md
@@ -35,8 +35,11 @@ An action can be setup to scan for deals, send a notification and store previous
|
|||||||
|
|
||||||
This action can be run on a cron and can store the embedded database by commiting the files to git.
|
This action can be run on a cron and can store the embedded database by commiting the files to git.
|
||||||
|
|
||||||
|
An example of this running can be found at [rfd-notify-action](https://github.com/davegallant/rfd-notify-action).
|
||||||
|
|
||||||
It also requires the corresponding [encrypted secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) setup.
|
It also requires the corresponding [encrypted secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) setup.
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# .github/workflows/main.yml
|
# .github/workflows/main.yml
|
||||||
|
|
||||||
@@ -51,20 +54,22 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
|
fetch-depth: 0 # speed boost
|
||||||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
|
|
||||||
- name: Run rfd-notify
|
- name: Run rfd-notify
|
||||||
uses: davegallant/rfd-notify@v0.2.0
|
uses: davegallant/rfd-notify@main
|
||||||
env:
|
env:
|
||||||
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
|
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
|
||||||
SENDGRID_MAIL_FROM: notify@rfd-notify.org
|
SENDGRID_MAIL_FROM: notify@rfd-notify.org
|
||||||
SENDGRID_MAIL_TO: ${{ secrets.SENDGRID_MAIL_TO }}
|
SENDGRID_MAIL_TO: ${{ secrets.SENDGRID_MAIL_TO }}
|
||||||
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "RFD Notify"
|
||||||
git add deals_db/
|
git add deals_db/
|
||||||
git commit -m "Add changes" -a || true
|
git commit -m "Add changes" -a || true
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user