fix bad syntax daily-collect
This commit is contained in:
parent
8c8aff3946
commit
4044153abb
1 changed files with 8 additions and 11 deletions
|
@ -1,20 +1,15 @@
|
||||||
name: Daily Feed Update
|
name: Daily Feed Update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Run daily at 1:00 AM UTC (adjust the time as needed)
|
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 1 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# Allow manual triggering of the workflow
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-feed:
|
update-feed:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Dependencies
|
||||||
- name: Install Dependencies
|
run: |
|
||||||
run: |
|
|
||||||
apk update
|
apk update
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
@ -27,7 +22,7 @@ jobs:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.TOKEN_NAME }}
|
SSH_PRIVATE_KEY: ${{ secrets.TOKEN_NAME }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "$TOKEN_NAME" | tr -d '\r' > ~/.ssh/id_rsa
|
echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts
|
ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts
|
||||||
ssh-keygen -F git.mcdevitt.tech || true
|
ssh-keygen -F git.mcdevitt.tech || true
|
||||||
|
@ -52,7 +47,9 @@ jobs:
|
||||||
mkdir -p target
|
mkdir -p target
|
||||||
|
|
||||||
- name: Run recent feed update
|
- name: Run recent feed update
|
||||||
run: cargo run -- --feed recent
|
run: |
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
cargo run -- --feed recent
|
||||||
|
|
||||||
- name: Commit and push results
|
- name: Commit and push results
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue