Skip to content

Commit 802735c

Browse files
ixxeL2097Frederic Spiers
andauthored
feat(ggbridge): nightly build (#82)
Co-authored-by: Frederic Spiers <[email protected]>
1 parent 54b2214 commit 802735c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/actions/github/action.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ runs:
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"

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
schedule:
8+
- cron: '0 23 * * 1-5'
79

810
permissions:
911
contents: read
@@ -25,6 +27,8 @@ jobs:
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
@@ -75,6 +79,8 @@ jobs:
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:
173180
- uses: azure/[email protected]
174181

0 commit comments

Comments
 (0)