Skip to content

Commit

Permalink
add github issue for every monthly run
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanaz01 committed Oct 24, 2024
1 parent 763ed66 commit 99e503b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ echo "gatk:${CURRENT_VERSION}:${LATEST_VERSION}" >> version_list.txt
# CURRENT_VERSION=$(get_current_version "$TOOL")
# echo "${TOOL}:${CURRENT_VERSION}:${LATEST_VERSION}" >> version_list.txt

{ echo Tool:Current_version: Latest_version; cat version_list.txt; } | csvlook
{ echo Tool:Current_version: Latest_version; cat version_list.txt; } | csvlook > version_table.txt

rm version_list.txt
11 changes: 8 additions & 3 deletions .github/workflows/docker-version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
workflow_dispatch:
push:
branches:
- main
- automate_version_check
schedule:
- cron: '*/2 * * * *' # Running every 2 minutes
- cron: "0 0 1 * *" # Run every 1 month

env:
GH_TOKEN: ${{ github.token }}


jobs:
Expand All @@ -19,12 +23,13 @@ jobs:
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Install jq and curl
- name: Install jq, curl, csvkit
run: |
sudo apt-get update
sudo apt-get install -y jq curl csvkit
- name: Make the script files executable
run: chmod +x version_check.sh
- name: Run the scripts
run: |
./version_check.sh
./version_check.sh
gh issue create --repo getwilds/wilds-docker-library --title "$(date +%B): Docker version check" --body-file version_table.txt

0 comments on commit 99e503b

Please sign in to comment.