Skip to content

♻️ Sync GIF 🖼️ #3

♻️ Sync GIF 🖼️

♻️ Sync GIF 🖼️ #3

Workflow file for this run

name: ♻️ Sync GIF 🖼️
on:
#push:
workflow_dispatch:
schedule:
- cron: "15 0 * * *" #12:15 AM UTC --> 06:00 AM NPT
#------------------------------------------------------------------------------------#
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: main
filter: "blob:none"
- name: Setup Env
run: |
##presets
set +x ; set +e
#-------------#
##CoreUtils
sudo apt update -y -qq
sudo apt install bc coreutils curl dos2unix fdupes jq moreutils rsync util-linux wget -y -qq
#temp
SYSTMP="$(dirname $(mktemp -u))" && export SYSTMP="${SYSTMP}"
echo "SYSTMP=${SYSTMP}" >> "${GITHUB_ENV}"
continue-on-error: true
- name: Fix GIFs
run: |
#Presets
set +x ; set +e
#--------------#
cd "${GITHUB_WORKSPACE}/main" && git pull origin main || git pull origin main --ff-only || git merge --no-ff -m "Merge & Sync"
find "${GITHUB_WORKSPACE}/main/profile" -type f -print0 | xargs -0 sed -i -E "s~(https://bin\.pkgforge\.dev/list\.gif)[^\"]*~\1?$(basename "$(mktemp -u)")=$(basename "$(mktemp -u)")~g"
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: ./main
commit_user_name: Azathothas
commit_user_email: [email protected]
commit_message: "‎‎‏‏‎ ‎"
#commit_message: "✅ Updated (Metadata) 🛍️ <-- ${{ env.UTC_TIME }} ⌚"
#push_options: '--force'
continue-on-error: true