From 21de69b7d972929525f76a1896828d75d1fdb5c6 Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Tue, 26 Nov 2024 10:42:26 +0100 Subject: [PATCH] ci: Integrate code formating --- .github/workflows/update-version-and-create-tag.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/update-version-and-create-tag.yml b/.github/workflows/update-version-and-create-tag.yml index c7451f28c..9177221c2 100644 --- a/.github/workflows/update-version-and-create-tag.yml +++ b/.github/workflows/update-version-and-create-tag.yml @@ -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