Skip to content

Commit

Permalink
ED-11261
Browse files Browse the repository at this point in the history
  • Loading branch information
davseve committed Jul 11, 2023
1 parent ccfb143 commit f35ca4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bi-weekly-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ runs:
steps:
- shell: bash
run: |
LAST_AUTOMATED_RELEASE=${{ inputs.LAST_AUTOMATED_RELEASE }}
echo "LAST_AUTOMATED_RELEASE=${{ inputs.LAST_AUTOMATED_RELEASE }}" >> $GITHUB_ENV
# last_release=$(git ls-remote --tags | grep -v "\-rc" | grep -v "refs/tags/v" | grep "cloud" | tail -n1 | awk ‘{print $2}’)
current_date=$(date +%s)
release_date=$(git log -1 --format=%ct $last_release)
time_diff=$(( (current_date - release_date) / (60*60*24) ))
release_date=$(git log -1 --format=%ct LAST_AUTOMATED_RELEASE)
time_diff=$(( (current_date - LAST_AUTOMATED_RELEASE) / (60*60*24) ))
if [ "$time_diff" -ge 14 ]; then
echo "14 days have passed since the release."
# Perform additional actions here
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-hosting-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
REPOSITORY_ID=${{ github.repository_id }}
EVENT_NAME=${{ github.event_name }}
CURRENT_DATE=$(date -u +"%Y-%m-%d %H:%M:%S")
CURRENT_DATE=$(date +%s)
echo "REPOSITORY_ID=$REPOSITORY_ID" >> $GITHUB_ENV
echo "EVENT_NAME=$EVENT_NAME" >> $GITHUB_ENV
echo "CURRENT_DATE=$CURRENT_DATE" >> $GITHUB_ENV
Expand Down

0 comments on commit f35ca4d

Please sign in to comment.