Skip to content

fix

fix #13

Workflow file for this run

name: Build TMIcons
on:
push:
branches:
- dev
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download font files
run: |
css_url="https://i.icomoon.io/public/a8317e20c1/TMIcons/style.css"
css_file="style.css"
dist_dir="dist/fonts"
curl -o $css_file $css_url
font_urls=$(grep -oP 'url\(\K[^)]+' style.css | sort -u)
curl -o "dist/fonts" "https://i.icomoon.io/public/a8317e20c1/TMIcons/TMicon.eot?73rtx5#iefix"
# for url in $font_urls; do
# clean_url=$(echo $url | sed 's/[?#].*//')
# ffilename=$(basename "$clean_url")
# curl -o "$dist_dir/$filename" "$clean_url"
# done
# rm $css_file
# echo "Font files downloaded successfully."
# - name: Configure Git
# run: |
# git config --global user.name 'HIE UX Service'
# git config --global user.email '[email protected]'
# - name: Add changes
# run: git add test.txt
# - name: Commit changes
# run: git commit -m "Add test.txt with dynamic content"
# - name: Push changes
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# run: git push origin dev