mirror of
https://github.com/nicholasr-itsulu/FediFetcher.git
synced 2026-05-30 23:41:26 +00:00
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 3 to 6. - [Release notes](https://github.com/dawidd6/action-download-artifact/releases) - [Commits](https://github.com/dawidd6/action-download-artifact/compare/v3...v6) --- updated-dependencies: - dependency-name: dawidd6/action-download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: getAllRepliesToKnownPosts
|
|
concurrency: get_context
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '3,13,23,33,43,53 * * * *'
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
environment: mastodon
|
|
steps:
|
|
- name: Checkout original repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
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@v6
|
|
with:
|
|
name: artifacts
|
|
workflow: get_context.yml
|
|
if_no_artifact_found: warn
|
|
path: artifacts
|
|
- name: Get Directory structure
|
|
run: ls -lR
|
|
- run: python find_posts.py --lock-hours=0 --access-token=${{ secrets.ACCESS_TOKEN }} -c="./config.json"
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: artifacts
|
|
path: |
|
|
artifacts
|
|
- name: Checkout user's forked repository for keeping workflow alive
|
|
uses: actions/checkout@v4
|
|
- name: Keep workflow alive
|
|
uses: gautamkrishnar/keepalive-workflow@v1
|