Skip to content

UI refresh pipeline

UI refresh pipeline #3

Workflow file for this run

name: UI refresh pipeline
on:
schedule:
- cron: '49 4 * * *'
workflow_dispatch:
jobs:
ui-refresh:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Randomize heading color
run: |
R=$((RANDOM%256))
G=$((RANDOM%256))
B=$((RANDOM%256))
NEW_COLOR=$(printf '%02x%02x%02x' "$R" "$G" "$B")
MARKER='0a271319-b06c-4e46-b24c-0fde677cf461'
sed -iE "s/[0-9a-f]\{6\}; \/\* $MARKER/$NEW_COLOR; \/\* $MARKER/g" static/style.css
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'Refresh UI'