From c9c8698c5d87b8ae86bd2f61599ae6d0fa24f665 Mon Sep 17 00:00:00 2001 From: Gosuke Miyashita Date: Tue, 30 Jun 2020 14:27:25 +0900 Subject: [PATCH] Checking in changes prior to tagging of version v0.5.0 --- CHANGELOG.md | 4 ++++ example/cloud-functions/bqnotify.go | 3 +++ main.go | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1b81f..437848e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [v0.5.0](https://github.com/aktsk/bqnotify/compare/v0.4.0...v0.5.0) (2020-06-30) + +* Use BQNOTIFY_PROJECT environment variable instead of the one defined in config.yaml [#22](https://github.com/aktsk/bqnotify/pull/22) ([mizzy](https://github.com/mizzy)) + ## [v0.4.0](https://github.com/aktsk/bqnotify/compare/v0.3.0...v0.4.0) (2020-06-30) * Use GCP_PROJECT environment variable instead of the one defined in config.yaml [#21](https://github.com/aktsk/bqnotify/pull/21) ([mizzy](https://github.com/mizzy)) diff --git a/example/cloud-functions/bqnotify.go b/example/cloud-functions/bqnotify.go index bf39c93..c3115cd 100644 --- a/example/cloud-functions/bqnotify.go +++ b/example/cloud-functions/bqnotify.go @@ -2,6 +2,8 @@ package example import ( "context" + "log" + "os" "github.com/aktsk/bqnotify/lib/runner" ) @@ -13,6 +15,7 @@ type PubSubMessage struct { // BqNotify is a main function to run bqnotify on Cloud Functions func BqNotify(ctx context.Context, m PubSubMessage) error { + log.Printf("GCP_PROJECT: %s\n", os.Getenv("GCP_PROJECT")) err := runner.Run("./serverless_function_source_code/config.yaml") if err != nil { return err diff --git a/main.go b/main.go index 2a352b1..d929245 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "github.com/aktsk/bqnotify/lib/runner" ) -var version = "0.4.0" +var version = "0.5.0" func main() { err := runner.Run("config.yaml")