Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
turbou committed Feb 21, 2024
1 parent e12caa8 commit d9f67a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
today:
type: string
required: false
description: 'date(YYYY-MM-DD) for end of support check'

jobs:
rssgen:
Expand Down Expand Up @@ -46,6 +51,8 @@ jobs:
docker-compose run python3 python ruby_support_tech.py
docker-compose run python3 python php_support_tech.py
docker-compose run python3 python agent_end_support_chk.py
env:
TODAY: ${{ github.event.inputs.today }}
- name: Commit updated files
run: |
git config core.filemode false
Expand Down
4 changes: 4 additions & 0 deletions work/agent_end_support_chk.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def main():
)

today = dt.today().replace(hour=0, minute=0, second=0, microsecond=0)
env_today = os.getenv('TODAY')
if env_today:
today = dt.strptime(env_today, '%Y-%m-%d').replace(hour=0, minute=0, second=0, microsecond=0)
print('using env.TODAY %s' % today)
item_dict = {}
for title, data_tuple in versions_dict.items():
rls_date = dt.strptime(data_tuple[0], '%Y%m%d%H%M%S')
Expand Down

0 comments on commit d9f67a4

Please sign in to comment.