Skip to content

Commit

Permalink
Add automatic push.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaopudark committed Oct 20, 2023
1 parent e4bc679 commit 249d404
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/auto_self_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT}}
shell: pwsh
run: |
pip install -r "./requirements.txt" -q
python ./auto_update.py
git config --global user.email ${Env:GIT_USER_EMAIL}
git config --global user.name ${Env:GIT_USER_NAME}
# git config --global user.password ${Env:GITHUB_TOKEN}
git add .
git commit -m "Auto commit $((Get-Date).ToString("yyyy-MM-dd HH:mm:ss"))"
git push origin main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_on_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
shell: pwsh
run: |
sudo apt install fontforge
pip install -r "./requirements.txt" -q
. "./build.ps1"
2 changes: 1 addition & 1 deletion .github/workflows/build_on_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
Import-Module PSComputerManagementZp
choco install fontforge --yes --limitoutput --force
Add-PathToCurrentProcessEnvPath -Path "C:\Program Files (x86)\FontForgeBuilds\bin"
pip install -r "./requirements.txt" -q
. ".\build.ps1"
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ You can just download `JetBrainsMonoNerdFont-Regular.ttf` from [the latest relea
winget install --id FontForge.FontForge --force # UAC prompt may occur
Add-PathToCurrentProcessEnvPath -Path "C:\Program Files (x86)\FontForgeBuilds\bin"
pip install -r "./requirements.txt" -q
. ".\build.ps1"
```

Expand All @@ -67,7 +68,8 @@ You can just download `JetBrainsMonoNerdFont-Regular.ttf` from [the latest relea
cd JetBrainsMonoNerdFonts
sudo apt install fontforge
pip install -r "./requirements.txt" -q
. "./build.ps1"
```

Expand Down
2 changes: 0 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pip install -r "${PSScriptRoot}/requirements.txt" -q

$guid = [guid]::NewGuid().ToString()
$temp_path = "${Home}/tmp/$guid"
$font_to_be_pathced = "JetBrainsMono-Regular.ttf"
Expand Down

0 comments on commit 249d404

Please sign in to comment.