Skip to content

Commit

Permalink
fix6
Browse files Browse the repository at this point in the history
  • Loading branch information
alvneiayu committed Nov 21, 2023
1 parent 2206fce commit 7811c8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scheduled-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Scheduled Release

on:
schedule:
- cron: "*/5 * * * *"
- cron: "*/10 * * * *"

jobs:
build:
Expand Down Expand Up @@ -37,8 +37,10 @@ jobs:
# Check Release
- name: Check Release
run: |
echo "alvaro yaml"
./scripts/release-check ${{ env.controller_dockerhub_image_name }}
VERSION_TAG=$(git describe --tags --abbrev=0)
git fetch --depth=500
VERSION_TAG=$(git describe --abbrev=0)
echo "$VERSION_TAG"
echo "VERSION_TAG=$VERSION_TAG" >> $GITHUB_ENV
Expand Down
6 changes: 5 additions & 1 deletion scripts/release-check
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ function find_release() {
}


echo "alvaro"
git checkout origin main
echo "alvaro2"
git fetch --depth=500
TAG=$(git describe --tags --abbrev=0 --always)
echo "alvaro3"
TAG=$(git describe --abbrev=0)
echo "Tag found $TAG"
RELEASE=$(find_release $TAG)
if [ $RELEASE -ne 0 ] ; then
Expand Down

0 comments on commit 7811c8e

Please sign in to comment.