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 fc7f993 commit ea1ea52
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/bi-weekly-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ runs:
using: "composite"
steps:
- shell: bash
env:
LAST_AUTOMATED_RELEASE: ${{ inputs.LAST_AUTOMATED_RELEASE }}
run: |
echo ${{ inputs.LAST_AUTOMATED_RELEASE }}
bash ${{ inputs.LAST_AUTOMATED_RELEASE }}
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) ))
if [ "$time_diff” -ge 14 ]; then
echo "14 days have passed since the release.”
# Perform additional actions here
else
echo "Less than 14 days have passed since the release.”
fi
echo LAST_AUTOMATED_RELEASE=$LAST_AUTOMATED_RELEASE >> $GITHUB_ENV
bash LAST_AUTOMATED_RELEASE=$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) ))
# if [ "$time_diff” -ge 14 ]; then
# echo "14 days have passed since the release.”
# # Perform additional actions here
# else
# echo "Less than 14 days have passed since the release.”
# fi

0 comments on commit ea1ea52

Please sign in to comment.