FediFetcher/.github/workflows/get_context.yml
Michael Thomas 123f7a7fa9 try again
2023-03-06 13:20:06 +00:00

32 lines
868 B
YAML

name: getContext
on:
workflow_dispatch
# schedule:
# - cron: '0 0 * * *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: Download all workflow run artifacts
uses: dawidd6/action-download-artifact@v2
with:
name: artifacts
workflow: get_context.yml
if_no_artifact_found: warn
- name: Display structure of downloaded files
run: ls -R
- run: python get_context.py ${{ secrets.ACCESS_TOKEN }} mstdn.thms.uk 1 1
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
artifacts