mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-10 02:12:27 +00:00
Compare commits
4 Commits
6cfb7427c1
...
0a7196636b
Author | SHA1 | Date | |
---|---|---|---|
|
0a7196636b | ||
|
c47fc6fc84 | ||
|
c146d2c7db | ||
|
18b10fcde8 |
25
README.md
25
README.md
@@ -46,8 +46,6 @@ expressions:
|
|||||||
|
|
||||||
## Github Actions
|
## Github Actions
|
||||||
|
|
||||||
> Commiting the pickled data (previous_matches) back into the repository is a bit of a hack, but allows for a simpler setup.
|
|
||||||
|
|
||||||
An action can be setup to scan for deals, send a notification and store previously found deals in the repo.
|
An action can be setup to scan for deals, send a notification and store previously found deals in the repo.
|
||||||
|
|
||||||
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.
|
||||||
@@ -56,35 +54,26 @@ It also requires the corresponding [encrypted secrets](https://docs.github.com/e
|
|||||||
# .github/workflows/rfd-notify.yml
|
# .github/workflows/rfd-notify.yml
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "*5 * * * *"
|
- cron: "*/5 * * * *"
|
||||||
jobs:
|
jobs:
|
||||||
rfd_notify:
|
rfd_notify:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: rfd-notify
|
name: rfd-notify
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: previous_matches
|
||||||
|
key: previous_matches
|
||||||
- name: Run rfd-notify
|
- name: Run rfd-notify
|
||||||
uses: davegallant/rfd-notify@main
|
uses: davegallant/rfd-notify@main
|
||||||
env:
|
env:
|
||||||
APPRISE_URL: ${{ secrets.APPRISE_URL }}
|
APPRISE_URL: ${{ secrets.APPRISE_URL }}
|
||||||
|
|
||||||
- name: Commit files
|
|
||||||
run: |
|
|
||||||
git config --local user.email "action@github.com"
|
|
||||||
git config --local user.name "RFD Notify"
|
|
||||||
git add previous_matches
|
|
||||||
git commit -m "Update previous_matches" -a || true
|
|
||||||
|
|
||||||
- name: Push changes
|
|
||||||
uses: ad-m/github-push-action@master
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
branch: ${{ github.ref }}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Gitlab Pipelines
|
## Gitlab Pipelines
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
FROM ghcr.io/davegallant/rfd-notify:1
|
FROM ghcr.io/davegallant/rfd-notify:1
|
||||||
|
|
||||||
ENTRYPOINT ["python", "/app/cli.py", "-c", "config.yml"]
|
ENTRYPOINT ["python", "/app/rfd_notify/cli.py", "-c", "config.yml"]
|
||||||
|
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
echo "Starting rfd-notify with config: $1"
|
echo "Starting rfd-notify with config: $1"
|
||||||
|
|
||||||
python /app/cli.py -c "$1"
|
python "/app/rfd_notify/cli.py" -c "$1"
|
||||||
|
Reference in New Issue
Block a user