fossilize
fossilize copied to clipboard
Did anyone get it running locally on linux with nektos/act?
I tried to let this fancy and great GitHub Action run with latest version of https://github.com/nektos/act locally, but it failed:
🦎 ✔ ~/dev/github/thomasmerz/fossilize [main|…2]
15:24 $ act
[Backup Mastodon Account/backup] 🚀 Start image=ghcr.io/catthehacker/ubuntu:act-latest
[Backup Mastodon Account/backup] 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Backup Mastodon Account/backup] 🐳 docker create image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Backup Mastodon Account/backup] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Backup Mastodon Account/backup] ☁ git clone 'https://github.com/potatoqualitee/fossilize' # ref=v1
[Backup Mastodon Account/backup] ⭐ Run Pre Backup Mastodon Account
[Backup Mastodon Account/backup] ☁ git clone 'https://github.com/actions/upload-artifact' # ref=v3
[Backup Mastodon Account/backup] ✅ Success - Pre Backup Mastodon Account
[Backup Mastodon Account/backup] ⭐ Run Main Checkout the code
[Backup Mastodon Account/backup] 🐳 docker cp src=/home/thomas/dev/github/thomasmerz/fossilize/. dst=/home/thomas/dev/github/thomasmerz/fossilize
[Backup Mastodon Account/backup] ✅ Success - Main Checkout the code
[Backup Mastodon Account/backup] ⭐ Run Main Backup Mastodon Account
[Backup Mastodon Account/backup] 🐳 docker cp src=/home/thomas/.cache/act/potatoqualitee-fossilize@v1/ dst=/var/run/act/actions/potatoqualitee-fossilize@v1/
[Backup Mastodon Account/backup] ⭐ Run Main if ("true" -eq $true) {
$VerbosePreference = "Continue"
}
$env:MASTODON_SERVER = "fulda.social"
Write-Verbose "Running script"
if (-not $env:ACCESS_TOKEN) {
throw '$env:ACCESS_TOKEN is empty. Did you setup your secrets? Check the docs.'
} else {
$env:ACCESS_TOKEN = $env:ACCESS_TOKEN.Replace("Bearer ", "")
}
function ConvertTo-Array ($str) {
# Let them add values in a variety of ways
if ($str -match [System.Environment]::NewLine) {
$results = $str.Split([System.Environment]::NewLine, [System.StringSplitOptions]::RemoveEmptyEntries)
} else {
$results = ($str -split ',').Split(" ", [System.StringSplitOptions]::RemoveEmptyEntries)
}
foreach ($result in $results) {
$result.TrimStart().TrimEnd()
}
}
$params = @{
Server = ConvertTo-Array "fulda.social"
Path = "./backups"
Type = ConvertTo-Array "all"
}
/var/run/act/actions/potatoqualitee-fossilize@v1/main.ps1 @params
[Backup Mastodon Account/backup] 🐳 docker exec cmd=[pwsh -command . /var/run/act/workflow/backup-composite-exports.ps1] user= workdir=
| OCI runtime exec failed: exec failed: unable to start container process: exec: "pwsh": executable file not found in $PATH: unknown
[Backup Mastodon Account/backup] ❌ Failure - Main if ("true" -eq $true) {
$VerbosePreference = "Continue"
}
$env:MASTODON_SERVER = "fulda.social"
Write-Verbose "Running script"
if (-not $env:ACCESS_TOKEN) {
throw '$env:ACCESS_TOKEN is empty. Did you setup your secrets? Check the docs.'
} else {
$env:ACCESS_TOKEN = $env:ACCESS_TOKEN.Replace("Bearer ", "")
}
function ConvertTo-Array ($str) {
# Let them add values in a variety of ways
if ($str -match [System.Environment]::NewLine) {
$results = $str.Split([System.Environment]::NewLine, [System.StringSplitOptions]::RemoveEmptyEntries)
} else {
$results = ($str -split ',').Split(" ", [System.StringSplitOptions]::RemoveEmptyEntries)
}
foreach ($result in $results) {
$result.TrimStart().TrimEnd()
}
}
$params = @{
Server = ConvertTo-Array "fulda.social"
Path = "./backups"
Type = ConvertTo-Array "all"
}
/var/run/act/actions/potatoqualitee-fossilize@v1/main.ps1 @params
[Backup Mastodon Account/backup] exitcode '126': failure
[Backup Mastodon Account/backup] ❌ Failure - Main Backup Mastodon Account
[Backup Mastodon Account/backup] exitcode '126': failure
[Backup Mastodon Account/backup] ⭐ Run Post Backup Mastodon Account
[Backup Mastodon Account/backup] 🐳 docker cp src=/home/thomas/.cache/act/potatoqualitee-fossilize@v1/ dst=/var/run/act/actions/potatoqualitee-fossilize@v1/
[Backup Mastodon Account/backup] ✅ Success - Post Backup Mastodon Account
[Backup Mastodon Account/backup] 🏁 Job failed
Error: Job 'backup' failed
🦎 ✘-1 ~/dev/github/thomasmerz/fossilize [main|…2]
15:24 $
On GitHub this action runs fine: https://github.com/thomasmerz/fossilize/actions/runs/5554462342 👍🏼 but how do I get this also running locally?