FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
feast/.github/workflows/nightly_python_sdk_release.yml at master · feast-dev/feast · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
feast-dev
/
feast
Public
Notifications
You must be signed in to change notification settings
Fork
1.4k
Star
7.2k
Code
Issues
217
Pull requests
190
Discussions
Actions
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
feast
/
.github
/
workflows
/
nightly_python_sdk_release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
95 lines (85 loc) · 3.34 KB
Breadcrumbs
feast
/
.github
/
workflows
/
nightly_python_sdk_release.yml
Copy path
File metadata and controls
95 lines (85 loc) · 3.34 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name
:
nightly python sdk release
on
:
schedule
:
-
cron
:
"
0 8 * * *
"
workflow_dispatch
:
inputs
:
base_version
:
description
:
"
Optional base version without the .dev suffix (e.g., 1.2.3). Defaults to the next semantic-release version.
"
required
:
false
type
:
string
dev_number
:
description
:
"
Optional dev release number. Defaults to the workflow run number.
"
required
:
false
type
:
string
permissions
:
contents
:
write
concurrency
:
group
:
nightly-python-sdk-release
cancel-in-progress
:
false
jobs
:
get-nightly-version
:
if
:
github.repository == 'feast-dev/feast'
runs-on
:
ubuntu-latest
outputs
:
nightly_version
:
${{ steps.version.outputs.nightly_version }}
env
:
GITHUB_TOKEN
:
${{ github.token }}
INPUT_BASE_VERSION
:
${{ inputs.base_version }}
INPUT_DEV_NUMBER
:
${{ inputs.dev_number }}
DEFAULT_DEV_NUMBER
:
${{ github.run_number }}
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
-
name
:
Setup Node.js
uses
:
actions/setup-node@v4
with
:
node-version
:
"
lts/*
"
-
name
:
Get nightly version
id
:
version
run
:
|
set -euo pipefail
if [[ -n "$INPUT_BASE_VERSION" ]]; then
BASE_VERSION="${INPUT_BASE_VERSION#v}"
else
set +e
SEMANTIC_OUTPUT=$(npx -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/exec -p semantic-release semantic-release --dry-run 2>&1)
SEMANTIC_STATUS=$?
set -e
echo "$SEMANTIC_OUTPUT"
BASE_VERSION=$(printf '%s\n' "$SEMANTIC_OUTPUT" | sed -nE 's/.*The next release version is ([[:digit:].]+)$/\1/p' | tail -n 1)
if [[ -z "$BASE_VERSION" ]]; then
echo "Could not determine a semantic-release next version (exit code: ${SEMANTIC_STATUS}); falling back to next patch after latest stable tag."
LATEST_TAG=$(git tag -l 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | sed -nE '/^v[0-9]+\.[0-9]+\.[0-9]+$/{p;q;}')
if [[ -z "$LATEST_TAG" ]]; then
echo "Could not determine latest stable tag."
exit 1
fi
LATEST_VERSION="${LATEST_TAG#v}"
IFS=. read -r MAJOR MINOR PATCH <<< "$LATEST_VERSION"
BASE_VERSION="${MAJOR}.${MINOR}.$((PATCH + 1))"
fi
fi
if [[ ! "$BASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Base version must match X.Y.Z, got: ${BASE_VERSION}"
exit 1
fi
DEV_NUMBER="${INPUT_DEV_NUMBER:-$DEFAULT_DEV_NUMBER}"
if [[ ! "$DEV_NUMBER" =~ ^[0-9]+$ ]]; then
echo "Dev number must be numeric, got: ${DEV_NUMBER}"
exit 1
fi
NIGHTLY_VERSION="v${BASE_VERSION}.dev${DEV_NUMBER}"
echo "Nightly version is ${NIGHTLY_VERSION}"
echo "nightly_version=${NIGHTLY_VERSION}" >> "$GITHUB_OUTPUT"
publish-nightly-python-sdk
:
needs
:
get-nightly-version
uses
:
./.github/workflows/publish_python_sdk.yml
secrets
:
inherit
#
pragma: allowlist secret
with
:
custom_version
:
${{ needs.get-nightly-version.outputs.nightly_version }}
checkout_ref
:
${{ github.sha }}
build_docker_images
:
false
token
:
${{ github.token }}
Back
|
FazBrowse Home
|
New Git URL