make action to update songs weekly

also added autoupdate option to config for { spoilers }
This commit is contained in:
2026-04-23 20:13:46 -04:00
parent 860e10cf7b
commit d6d8b9b091
2 changed files with 40 additions and 0 deletions

39
.github/workflows/songupdate.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
# This is a basic workflow to help you get started with Actions
name: Update tetofortunes files
# Controls when the workflow will run
on:
schedule:
- cron: "0 3 * * Sun" # run every sunday at 3am
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
upload:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Runs a set of commands using the runners shell
- name: Run makefortune.sh
run: |
echo Installing dependencies...
sudo apt-get update
sudo apt-get install -y fortune-mod jq
echo Dependencies installed. Running makefortune.sh...
sh makefortune.sh
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: updated_songs
path: |
tetofortunes
tetofortunes.dat
var.json

View File

@@ -1 +1,2 @@
AUDIO="YES"
AUTOUPDATE="NO"