Skip to content

Cron Action

Cron Action #26812

Workflow file for this run

name: Cron Action
on:
workflow_dispatch:
schedule:
- cron: '0 */1 * * *'
jobs:
promoapps:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download artifact
id: download
continue-on-error: true
uses: dawidd6/action-download-artifact@v2
with:
workflow: cron.yml
workflow_conclusion: success
- name: Move database
continue-on-error: true
run: mv links_history/links_history.db links_history.db
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install Requirements
run: pip install -r requirements.txt
- name: Run PromoApps
run: python promoapps.py
env:
DESTINATION: ${{ secrets.DESTINATION }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
FEED_URL: ${{ secrets.FEED_URL }}
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
- name: Upload history
uses: actions/upload-artifact@v4
with:
name: links_history
path: links_history.db