ci: Integrate code formating

This commit is contained in:
Eugen Eisler
2024-11-26 10:42:26 +01:00
committed by GitHub
parent d4b5c3b8d5
commit 21de69b7d9

View File

@@ -63,6 +63,10 @@ jobs:
- name: Update version.nix file
run: |
echo "\"${{ env.new_version }}\"" > pkgs/fabric/version.nix
- name: Format source codes
run: |
go fmt ./...
- name: Update gomod2nix.toml file
run: |
@@ -73,6 +77,7 @@ jobs:
git add version.go
git add pkgs/fabric/version.nix
git add gomod2nix.toml
git add .
if ! git diff --staged --quiet; then
git commit -m "Update version to ${{ env.new_tag }} and commit $commit_hash"
else