FediFetcher/.github/workflows/get_context.yml

33 lines
942 B
YAML
Raw Normal View History

2023-03-06 16:20:41 +01:00
name: getAllRepliesToKnownPots
2023-03-06 13:42:15 +01:00
on:
2023-03-06 13:46:23 +01:00
workflow_dispatch
2023-03-06 13:42:15 +01:00
# schedule:
# - cron: '0 0 * * *'
jobs:
run:
runs-on: ubuntu-latest
2023-03-06 16:27:45 +01:00
environment: mastodon
2023-03-06 13:42:15 +01:00
steps:
- uses: actions/checkout@v3
2023-03-06 13:48:11 +01:00
- uses: actions/setup-python@v4
2023-03-06 13:47:24 +01:00
with:
python-version: '3.10'
2023-03-06 14:01:09 +01:00
cache: 'pip' # caching pip dependencies
2023-03-06 14:00:24 +01:00
- run: pip install -r requirements.txt
2023-03-06 13:42:15 +01:00
- name: Download all workflow run artifacts
2023-03-06 14:17:54 +01:00
uses: dawidd6/action-download-artifact@v2
2023-03-06 13:42:15 +01:00
with:
name: artifacts
2023-03-06 14:20:06 +01:00
workflow: get_context.yml
if_no_artifact_found: warn
2023-03-06 14:23:44 +01:00
path: artifacts
2023-03-06 16:20:41 +01:00
- run: python get_context.py ${{ secrets.ACCESS_TOKEN }} ${{ vars.MASTODON_SERVER }} ${{ vars.REPLY_INTERVAL_IN_HOURS }} ${{ vars.HOME_TIMELINE_LENGTH }}
2023-03-06 13:42:15 +01:00
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
2023-03-06 13:49:56 +01:00
artifacts