Skip to content

Commit 63330f8

Browse files
committed
Merge remote-tracking branch 'origin' into persistent-filter-harshit
2 parents 5f0f7f9 + 0c3ed3b commit 63330f8

File tree

162 files changed

+6065
-2515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+6065
-2515
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Daily Core check
22

33
on:
44
schedule:
5-
- cron: '0 5 * * *'
5+
- cron: '0 4 * * 1,2,3,4,5'
66

77
jobs:
88
check:

.github/workflows/codeql-analysis.old renamed to .github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
name: "CodeQL"
77

88
on:
9-
push:
10-
branches: [develop]
119
schedule:
1210
- cron: '0 5 * * 1'
1311

12+
workflow_dispatch: {}
13+
1414
jobs:
1515
analyze:
1616
name: Analyze
@@ -51,13 +51,23 @@ jobs:
5151
# Set up JDK
5252
- name: Set up JDK
5353
uses: actions/setup-java@v4
54+
if: ${{ matrix.language == 'java' }}
5455
with:
5556
distribution: 'temurin'
5657
java-version: 21
5758

59+
- name: Setup gradle
60+
if: ${{ matrix.language == 'java' }}
61+
uses: gradle/actions/setup-gradle@v4
62+
63+
- name: Build with Gradle
64+
if: ${{ matrix.language == 'java' }}
65+
run: ./gradlew testClasses -x :ui:installFrontend -x :ui:assembleFrontend
66+
5867
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5968
# If this step fails, then you should remove it and run the build manually (see below)
6069
- name: Autobuild
70+
if: ${{ matrix.language != 'java' }}
6171
uses: github/codeql-action/autobuild@v3
6272

6373
# ℹ️ Command-line programs to run using the OS shell.

.github/workflows/release-plugins.yml renamed to .github/workflows/gradle-release-plugins.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
releaseVersion:
7-
description: 'The release version (e.g., 0.21.0-RC1)'
7+
description: 'The release version (e.g., 0.21.0-rc1)'
88
required: true
99
type: string
1010
nextVersion:
@@ -59,8 +59,9 @@ jobs:
5959
env:
6060
GITHUB_PAT: ${{ secrets.GH_PERSONAL_TOKEN }}
6161
run: |
62-
chmod +x ./release-plugins.sh;
63-
./release-plugins.sh \
62+
chmod +x ./dev-tools/release-plugins.sh;
63+
64+
./dev-tools/release-plugins.sh \
6465
--release-version=${{github.event.inputs.releaseVersion}} \
6566
--next-version=${{github.event.inputs.nextVersion}} \
6667
--yes \
@@ -71,8 +72,9 @@ jobs:
7172
env:
7273
GITHUB_PAT: ${{ secrets.GH_PERSONAL_TOKEN }}
7374
run: |
74-
chmod +x ./release-plugins.sh;
75-
./release-plugins.sh \
75+
chmod +x ./dev-tools/release-plugins.sh;
76+
77+
./dev-tools/release-plugins.sh \
7678
--release-version=${{github.event.inputs.releaseVersion}} \
7779
--next-version=${{github.event.inputs.nextVersion}} \
7880
--dry-run \

.github/workflows/gradle-release.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Run Gradle Release
2+
run-name: "Releasing Kestra ${{ github.event.inputs.releaseVersion }} 🚀"
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: 'The release version (e.g., 0.21.0-rc1)'
8+
required: true
9+
type: string
10+
nextVersion:
11+
description: 'The next version (e.g., 0.22.0-SNAPSHOT)'
12+
required: true
13+
type: string
14+
env:
15+
RELEASE_VERSION: "${{ github.event.inputs.releaseVersion }}"
16+
NEXT_VERSION: "${{ github.event.inputs.nextVersion }}"
17+
jobs:
18+
release:
19+
name: Release Kestra
20+
runs-on: ubuntu-latest
21+
if: github.ref == 'refs/heads/develop'
22+
steps:
23+
# Checks
24+
- name: Check Inputs
25+
run: |
26+
if ! [[ "$RELEASE_VERSION" =~ ^[0-9]+(\.[0-9]+)\.0-rc[01](-SNAPSHOT)?$ ]]; then
27+
echo "Invalid release version. Must match regex: ^[0-9]+(\.[0-9]+)\.0-rc[01](-SNAPSHOT)?$"
28+
exit 1
29+
fi
30+
31+
if ! [[ "$NEXT_VERSION" =~ ^[0-9]+(\.[0-9]+)\.0-SNAPSHOT$ ]]; then
32+
echo "Invalid next version. Must match regex: ^[0-9]+(\.[0-9]+)\.0-SNAPSHOT$"
33+
exit 1;
34+
fi
35+
# Checkout
36+
- uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
40+
# Checkout GitHub Actions
41+
- uses: actions/checkout@v4
42+
with:
43+
repository: kestra-io/actions
44+
path: actions
45+
ref: main
46+
47+
# Setup build
48+
- uses: ./actions/.github/actions/setup-build
49+
id: build
50+
with:
51+
java-enabled: true
52+
node-enabled: true
53+
python-enabled: true
54+
caches-enabled: true
55+
56+
- name: Configure Git
57+
run: |
58+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
59+
git config --global user.name "github-actions[bot]"
60+
61+
# Execute
62+
- name: Run Gradle Release
63+
env:
64+
GITHUB_PAT: ${{ secrets.GH_PERSONAL_TOKEN }}
65+
run: |
66+
# Extract the major and minor versions
67+
BASE_VERSION=$(echo "$RELEASE_VERSION" | sed -E 's/^([0-9]+\.[0-9]+)\..*/\1/')
68+
PUSH_RELEASE_BRANCH="releases/v${BASE_VERSION}.x"
69+
70+
# Create and push release branch
71+
git checkout -b "$PUSH_RELEASE_BRANCH";
72+
git push -u origin "$PUSH_RELEASE_BRANCH";
73+
74+
# Run gradle release
75+
git checkout develop;
76+
77+
if [[ "$RELEASE_VERSION" == *"-SNAPSHOT" ]]; then
78+
# -SNAPSHOT qualifier maybe used to test release-candidates
79+
./gradlew release -Prelease.useAutomaticVersion=true \
80+
-Prelease.releaseVersion="${RELEASE_VERSION}" \
81+
-Prelease.newVersion="${NEXT_VERSION}" \
82+
-Prelease.pushReleaseVersionBranch="${PUSH_RELEASE_BRANCH}" \
83+
-Prelease.failOnSnapshotDependencies=false
84+
else
85+
./gradlew release -Prelease.useAutomaticVersion=true \
86+
-Prelease.releaseVersion="${RELEASE_VERSION}" \
87+
-Prelease.newVersion="${NEXT_VERSION}" \
88+
-Prelease.pushReleaseVersionBranch="${PUSH_RELEASE_BRANCH}"
89+
fi

0 commit comments

Comments
 (0)