Skip to content

Update LIBRE.html

Update LIBRE.html #45

Workflow file for this run

name: Fix stellar.toml images
on:
push:
branches:
- main
workflow_dispatch: # erlaubt manuelles Starten
jobs:
fix-toml:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:

Check failure on line 15 in .github/workflows/fix-toml.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fix-toml.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
token: ${{ secrets.GITHUB_TOKEN }}
- name: Replace image URLs in stellar.toml
run: |
FILE=".well-known/stellar.toml"
TARGET_URL="https://github.com/LibreXLM/librexlm.github.io/blob/main/LIBRE_PNG.jpg"
if [ -f "$FILE" ]; then
sed -i "s|image=.*|image=\"$TARGET_URL\"|g" $FILE
sed -i "s|ORG_LOGO=.*|ORG_LOGO=\"$TARGET_URL\"|g" $FILE
fi
- name: Commit changes if any
run: |
if ! git diff --quiet; then
git config --global user.name "LibreXLM Bot"
git config --global user.email "[email protected]"
git add .well-known/stellar.toml
git commit -m "fix: unified all image URLs in stellar.toml"
git push
fi