From 10947e53d72bf56328fbcfd4dd0c11eab993e868 Mon Sep 17 00:00:00 2001 From: Charlotte Kostelic Date: Tue, 9 Apr 2024 11:27:20 -0400 Subject: [PATCH] removed datetime from script, testing yaml file --- .github/workflows/monthly-run.yaml | 4 ++-- monthly_lcsh_check.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/monthly-run.yaml b/.github/workflows/monthly-run.yaml index 0ef30f8..627f3fc 100644 --- a/.github/workflows/monthly-run.yaml +++ b/.github/workflows/monthly-run.yaml @@ -1,7 +1,7 @@ name: monthly lcsh check on: schedule: - - cron: '20 15 9 * *' + - cron: '20 30 9 * *' jobs: monthly-run: @@ -21,7 +21,7 @@ jobs: - name: Set date run: | - echo "DATE=$(date "+%Y%m")" >> $GITHUB_ENV + echo "DATE=$(date "+%Y%m%d%T")" >> $GITHUB_ENV - name: Install dependencies run: | diff --git a/monthly_lcsh_check.py b/monthly_lcsh_check.py index 48bde1c..69ea0e6 100644 --- a/monthly_lcsh_check.py +++ b/monthly_lcsh_check.py @@ -1,9 +1,6 @@ -import datetime - from acc_lcsh_check.log import LogSession if __name__ == "__main__": - today = datetime.datetime.strftime(datetime.datetime.now(), "%Y%m%d") logger = LogSession( logger_name="monthly_lcsh_check", logfile="lcsh.log",