From e9367deda6775bc0eb99ccee36a500ec69076213 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 13 Sep 2021 22:03:08 +0200 Subject: [PATCH] fix .drone.yml --- .drone.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index d93fba2..7655d55 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,25 +11,25 @@ steps: from_secret: YOUTUBE_API_KEY YOUTUBE_CHANNEL_ID: 'UCmpilcSVu1T-AsAiiHbfpcA' TZ: 'Europe/Berlin' - commands: - - apk --no-cache add gcc musl-dev tzdata - - pip3 install --no-cache-dir -r requirements.txt - - | - python3 -c ' - from GetLatestVideo import API - import os + commands: + - apk --no-cache add gcc musl-dev tzdata + - pip3 install --no-cache-dir -r requirements.txt + - | + python3 -c ' + from GetLatestVideo import API + import os - YOUTUBE_API_KEY = os.getenv("YOUTUBE_API_KEY") - YOUTUBE_CHANNEL_ID = os.getenv("YOUTUBE_CHANNEL_ID") + YOUTUBE_API_KEY = os.getenv("YOUTUBE_API_KEY") + YOUTUBE_CHANNEL_ID = os.getenv("YOUTUBE_CHANNEL_ID") - CHANNEL_ID = [ - YOUTUBE_CHANNEL_ID - ] + CHANNEL_ID = [ + YOUTUBE_CHANNEL_ID + ] - videos = [] - yt = API(YOUTUBE_API_KEY) + videos = [] + yt = API(YOUTUBE_API_KEY) - for channel in CHANNEL_ID: - videos.append(yt.get_latest_video(channel)) + for channel in CHANNEL_ID: + videos.append(yt.get_latest_video(channel)) - print(videos)' + print(videos)'