Skip to content

Commit 3ebbeec

Browse files
authored
Update Makefile
1 parent fa3ed15 commit 3ebbeec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ SWIFT_FILES := $(addsuffix /Client.swift, $(SUBDIRS))
4343
@echo "::debug:: make $@"
4444

4545
check-submodule: Submodule
46+
ifdef GITHUB_ACTIONS ## https://docs.github.com/en/actions/learn-github-actions/variables
47+
@echo "::notice:: make $@"
48+
else
4649
git submodule update --recursive --remote
4750
@git add $^
4851
@git commit -m "[Make]$$(git submodule status Submodule/github/rest-api-description)" && touch $^ || true
4952
@echo "::notice:: make $@"
53+
endif
5054

5155
install: check-submodule $(SWIFT_FILES)
5256
@echo "::notice:: make $@"

0 commit comments

Comments
 (0)