File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 6262 - shell : bash
6363 id : version
6464 run : |
65- # Extract the tag, remove "v" prefix if it exists
66- RAW_VERSION=${GITHUB_REF##*/}
67- VERSION=${RAW_VERSION#v}
65+ if [[ "${{ github.event_name }}" == "schedule" ]]; then
66+ LATEST_TAG=$(git describe --tags --abbrev=0 --match="[0-9]*.[0-9]*.[0-9]*" --match="v[0-9]*.[0-9]*.[0-9]*" 2>/dev/null || exit 1)
67+ VERSION=${LATEST_TAG#v}
68+ echo "Using version from latest tag: $VERSION"
69+ else
70+ RAW_VERSION=${GITHUB_REF##*/}
71+ VERSION=${RAW_VERSION#v}
72+ fi
6873 GA_VERSION=${VERSION%-*}
6974 echo "VERSION: $VERSION"
7075 echo "GA_VERSION: $GA_VERSION"
Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' v*'
7+ schedule :
8+ - cron : ' 0 23 * * 1-5'
79
810permissions :
911 contents : read
2527 steps :
2628 - name : Checkout
2729 uses : actions/checkout@v5
30+ with :
31+ fetch-depth : 0
2832
2933 - name : Set GitHub vars
3034 id : github
7579
7680 - name : Checkout
7781 uses : actions/checkout@v5
82+ with :
83+ fetch-depth : 0
7884
7985 - name : Set GitHub vars
8086 id : github
@@ -169,6 +175,7 @@ jobs:
169175 name : Publish Helm Chart
170176 needs : [publish]
171177 runs-on : ubuntu-24.04
178+ if : ${{ github.event_name != 'schedule' }}
172179 steps :
173180174181
You can’t perform that action at this time.
0 commit comments