sync version for source file

This commit is contained in:
Ing 2022-11-17 12:13:03 +08:00 committed by GitHub
parent 6cdff220fa
commit 4bf561dd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,17 @@ jobs:
cd ..
rm -rf ${{ github.event.repository.name }}
# 修改源文件版本号
sed -i "s/^#define DRV_VERSION.*/#define DRV_VERSION \"$NEW_TAG\"/" igc_main.c
- name: Commit and Push
run: |
if [ -n "$(git status -s | grep igc_main.c)" ];then
git add igc_main.c
git commit -m "update ${{ env.new_tag }}"
git push -f
fi
- name: Build igc for ${{matrix.platform}}
run: |
mkdir ./${{matrix.platform}} && chmod 777 ./${{matrix.platform}}