FediFetcher/.github/workflows/get_context.yml

32 lines
757 B
YAML
Raw Normal View History

2023-03-06 13:42:15 +01:00
name: getContext
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
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 13:42:15 +01:00
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
- name: Display structure of downloaded files
2023-03-06 13:56:26 +01:00
if: always()
2023-03-06 13:42:15 +01:00
run: ls -R
2023-03-06 13:49:56 +01:00
- run: python get_context.py ${{ secrets.ACCESS_TOKEN }} mstdn.thms.uk 1 1
2023-03-06 13:57:44 +01:00
if: always()
2023-03-06 13:42:15 +01:00
- name: Upload artifacts
2023-03-06 13:57:44 +01:00
if: always()
2023-03-06 13:42:15 +01:00
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
2023-03-06 13:49:56 +01:00
artifacts