Skip to content

Update SDE to latest #2

Update SDE to latest

Update SDE to latest #2

Workflow file for this run

name: Update SDE to latest
on:
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Script
run: |
OLDVERS=$(cat sde.json | grep -E -o "([0-9]{8}-TRANQUILITY)" | uniq)
NEWVERS=$(curl -s https://www.fuzzwork.co.uk/dump/latest/ | grep -E -o "([0-9]{8}-TRANQUILITY)" | uniq)
sed -i "s/$OLDVERS/$NEWVERS/g" ./tools/generate_sde_json.php
sed -i "s/$OLDVERS/$NEWVERS/g" sde.json
- name: Commit files # transfer the new html files back into the repository
run: |
git config --local user.name ${{ github.actor }}
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
VERS=$(cat sde.json | grep -E -o "([0-9]{8}-TRANQUILITY)" | uniq)
git add sde.json ./tools/generate_sde_json.php
git diff --exit-code || git commit -m "Update SDE to $VERS"
git push