diff --git a/.github/workflows/update-version-and-create-tag.yml b/.github/workflows/update-version-and-create-tag.yml index c7451f28..9177221c 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