From de38411a094cddbef3a35ba00dfe8a05e1090a1f Mon Sep 17 00:00:00 2001 From: oDinZu Date: Thu, 1 Dec 2022 21:10:26 -0500 Subject: [PATCH] update env variables for drone.yml --- .drone.yml | 6 ++++-- _plugins/jekyll-strapi-api/lib/a-get-collections.rb | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c832731..a4aea0a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,8 +56,10 @@ steps: from_secret: no_hostkey SERVER_PASS: from_secret: server_pass - API_TOKEN: - from_secret: api_token + STRAPI_BOT_USER_EMAIL: + from_secret: strapi_bot_user_email + STRAPI_BOT_USER_PASS + from_secret: strapi_bot_user_pass privileged: false volumes: - name: jekyll diff --git a/_plugins/jekyll-strapi-api/lib/a-get-collections.rb b/_plugins/jekyll-strapi-api/lib/a-get-collections.rb index 64d4fe8..9321646 100644 --- a/_plugins/jekyll-strapi-api/lib/a-get-collections.rb +++ b/_plugins/jekyll-strapi-api/lib/a-get-collections.rb @@ -76,8 +76,6 @@ if "#{strapi_bot_user_email}".blank? || "#{strapi_bot_user_pass}".blank? puts "" end # close if/else - Jekyll.logger.debug "Strapi Token Test: #{strapi_token}".to_s.yellow.bold - # check if api_token is auth or unauth if "#{strapi_token}".blank? # logs data to screen