-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (37 loc) · 1.13 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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\().+?(?=\))' $css_file | sort -u)
for url in $font_urls; do
echo "URL: $url"
filename=$(basename "${url%%\?*}")
curl -o "$dist_dir/$filename" "$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