Skip to content

Commit

Permalink
fix: add commit svg and tonic data process
Browse files Browse the repository at this point in the history
  • Loading branch information
darrytai committed May 22, 2024
1 parent c0d7948 commit 82c7d0d
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,19 @@ jobs:
echo "Tonic UI data built successfully."
- name: Update fonts, svg icons, and Tonic UI data
- name: Commit fonts, svg icons, and Tonic UI data
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
majorVersion=$(jq -r '.fontPref.metadata.majorVersion' data/Preferences.json)
minorVersion=$(jq -r '.fontPref.metadata.minorVersion' data/Preferences.json)
version="$majorVersion.$minorVersion.0"
echo "VERSION=$version" >> $GITHUB_ENV
git status
# - 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"
git config --global user.name 'HIE UX Service'
git config --global user.email '[email protected]'
# - name: Push changes
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# run: git push origin dev
git log -n 1 --pretty=format:%B > last_commit.txt
git add --all
git commit -F last_commit.txt
git push

0 comments on commit 82c7d0d

Please sign in to comment.