1 Commits

Author SHA1 Message Date
Dave Gallant
12e2b39dcd Add git push with checkout@v4 2023-12-09 20:09:05 -05:00

View File

@@ -29,7 +29,7 @@ poetry run python rfd_notify/cli.py -c examples/config.yml
The following environment variables are required:
| VARIABLE | DESCRIPTION |
| ----------- | ---------------------------------------------------------------- |
| ----------- | ---------------------------------------------------------------------------------------- |
| APPRISE_URL | See [notifications](https://github.com/caronc/apprise#productivity-based-notifications). |
## Example Configuration
@@ -60,29 +60,21 @@ on:
- cron: "*/5 * * * *"
jobs:
rfd_notify:
runs-on: ubuntu-latest
name: rfd-notify
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
branch: main
fetch-depth: 0
- name: Run rfd-notify
uses: davegallant/rfd-notify@main
env:
APPRISE_URL: ${{ secrets.APPRISE_URL }}
- name: Commit files
sparse-checkout: |
config.yml
previous_matches
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.email "bot@gitea.snake-cloud.ts.net"
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 }}
git push
```
## Gitlab Pipelines
@@ -105,5 +97,4 @@ run:
- previous_matches
script:
- python /app/rfd_notify/cli.py -c config.yml
```