Skip to content

Commit

Permalink
Ensure makefile works correctly when updating cake file version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Oct 9, 2023
1 parent 3ffb128 commit ed778be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
run: >
gh pr create -B dep-updater
-H bumpsnag-$TARGET_SUBMODULE-$TARGET_VERSION
--title 'Update $TARGET_SUBMODULE to version $TARGET_VERSION'
--title "Update $(TARGET_SUBMODULE) to version $(TARGET_VERSION)"
--body 'Created by bumpsnag'
--reviewer cawllec
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ bump_cake:
ifeq ($(VERSION),)
@$(error VERSION is not defined. Run with `make VERSION=number bump_cake`)
endif
if [[ "$OSTYPE" == "darwin"* ]]; then
@sed -i '' "s/^var version = \".*\";/var version = \"$(VERSION)\";/" build.cake
else
@sed -i "s/^var version = \".*\";/var version = \"$(VERSION)\";/" build.cake
fi
ifeq ($(OSTYPE), $(wildcard darwin*))
@sed -i '' "s/^var version = \".*\";/var version = \"$(VERSION)\";/" build.cake
else
@sed -i "s/^var version = \".*\";/var version = \"$(VERSION)\";/" build.cake
endif

0 comments on commit ed778be

Please sign in to comment.