-
Notifications
You must be signed in to change notification settings - Fork 246
Migrating From GitHub Actions
In April 2025 GitHub removed a dependency that is needed to run FediFetcher as GitHub Action. You can find more information in this comment on Issue #198
Important
If you are currently running FediFetcher as GitHub Action, you will need to run FediFetcher using another mechanism going forward. You should have until 20th June 2025 to do so. If you don't migrate FediFetcher, it will likely cease working on or shortly after that date.
This document outlines the basic steps needed to migrate FediFetcher:
You will need to grab a copy of your configuration options. You should find this in the config.json
file in the root of your fork of FediFetcher. In order to download the file, click on it in the main repository view, then click the Download icon in the top menu bar as seen below:
You will need to disable the GitHub Action. In order to do so, return to your own fork of FediFetcher.
- Click on the 'Actions' tab.
- Find the 'getAllRepliesToKnownPosts' workflow in the left column.
- Click the three dots at the top right.
- Choose 'Disable Workflow'
You will need to be able to reset your Access Token. Please refer to Get an Access Token to find out how.
You will want to add the Access Token to the config.json
file that you downloaded in step 1.
In order to do that, open up the file in your favourite editor, and add it on it's own line like so: "access-token": "Your access token",
. The final file should look something like this:
{
"access-token": "Your access token",
"server": "your.mastodon.server",
// your other settings below
}
Please refer to FediFetcher configuration options for all configuration options
Your artifacts contain all the data about previous runs of FediFetcher. If you migrate your FediFetcher from GitHub Actions without downloading these FediFetcher will not know whihch posts, accounts, and servers it has seen and processed in the past, and re-process everything from scratch, wasting a lot of resources.
To prevent this you can download your artifacts from your last GitHub Actions run. To do so, firstly return back to your FediFetcher fork on GitHub, then:
- Click the 'Actions' tab
- Find the 'getAllRepliesToKnownPosts' workflow in the left column.
- Open up the latest workflow run
- Scroll down, and under 'Artifacts' click the download button.
Extract the downloaded zip file, and copy all the individual files from it into the artifacts
directory of your new FediFetcher install.
You should pick from one of the following options. Each individual guide will tell you where to store your config.json
file that you downloaded earlier:
-
Running FediFetcher as a cron job
Ideal if you already have a linux device, and want to simply run FediFetcher on there. -
Running FediFetcher from a container
Ideal if you are familiar with containers. -
Running FediFetcher as a systemd timer
Ideal if you have a linux device somewhere, but don't like cron jobs. -
Running FediFetcher as a Scheduled Task in Windows
Ideal if you are a Windows User and your main device is (almost) always running.
Please feel free to open an Issue on GitHub.
Fork it and send a pull request. Read Contributing to FediFetcher for more info.