From 3b152e6ae2457b7384f6c1042531dd9cd307913b Mon Sep 17 00:00:00 2001 From: Yonatan Beker Date: Thu, 17 Jun 2021 16:04:12 +0300 Subject: [PATCH] [v1.0.6] HOTFIX | Fix bump version (again) (#5) * Fix bump version (again) * Remove \ --- Makefile | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5b84acd..b6b099a 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,7 @@ bump-version: echo $(CURRENT_BRANCH); \ fi; \ )) + $(eval REPOSITORY_NAME=$(shell echo "$(GITHUB_REPOSITORY)" | cut -d / -f 2)) @git log -1 --pretty="%B" > /tmp/commit-message @sed -i '1s/^/\[$(NEW_VERSION)] /' /tmp/commit-message @@ -53,7 +54,7 @@ bump-version: @BRANCH_PROTECTION_ID=`curl https://api.github.com/graphql \ -H "Authorization: bearer $(CAMPARIBOT_TOKEN)" -H "Content-Type: application/json" \ - -X POST -d '{ "query": "query { repository(name: \"$(IMAGE_NAME)\", owner: \"aporia-ai\") { branchProtectionRules(first: 100) { nodes { id, pattern } } } }" }' | \ + -X POST -d '{ "query": "query { repository(name: \"$(REPOSITORY_NAME)\", owner: \"aporia-ai\") { branchProtectionRules(first: 100) { nodes { id, pattern } } } }" }' | \ jq -r '.data.repository.branchProtectionRules.nodes | .[] | select(.pattern == "$(BRANCH_PROTECTION_PATTERN)") | .id'`; \ if [ ! -z $$BRANCH_PROTECTION_ID ]; \ then \ diff --git a/pyproject.toml b/pyproject.toml index 3f1f14b..a6bbc90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aporia-importer" -version = "v1.0.3" +version = "v1.0.6" description = "Import data from cloud storage to Aporia" authors = [] readme = "README.md"