-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-cluster-label
- Loading branch information
Showing
36 changed files
with
6,673 additions
and
5,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
.github/workflows/operator-check-prepare-release-commit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: operator-check-prepare-release-commit | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'operator/**' | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check-commit: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.pull_request.head.ref == 'release-please--branches--main--components--operator' && | ||
contains(github.event.pull_request.title, 'chore( operator): community release') | ||
steps: | ||
- name: Extract release version | ||
id: pr_semver | ||
run: | | ||
PR_TITLE="${{ github.event.pull_request.title }}" | ||
SEMVER=$(echo "$PR_TITLE" | sed -n 's/^chore( operator): community release \([0-9]\+\.[0-9]\+\.[0-9]\+\)$/\1/p') | ||
echo "semver=$SEMVER" >> $GITHUB_OUTPUT | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
path: "release" | ||
|
||
- name: Check main commits for prepare release commit | ||
id: check_commit | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
working-directory: "release" | ||
run: | | ||
COMMIT=$(gh search commits "chore(operator): prepare community release v${{ steps.pr_semver.outputs.semver }}") | ||
if [ -n "$COMMIT" ]; then | ||
echo "Prepare release commit found." | ||
else | ||
echo "No prepare release commit found for the release version ${{ steps.pr_semver.outputs.semver }}" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: operator-release-please | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'operator/**' | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
releasePlease: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_created: ${{ steps.release.outputs.operator--release_created }} | ||
release_name: ${{ steps.release.outputs.operator--tag_name }} | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
id: release | ||
with: | ||
path: operator | ||
config-file: operator/release-please-config.json | ||
token: ${{ secrets.GH_TOKEN }} | ||
publishRelease: | ||
needs: | ||
- "releasePlease" | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.releasePlease.outputs.release_created }} | ||
steps: | ||
- name: "pull code to release" | ||
uses: "actions/checkout@v4" | ||
with: | ||
path: "release" | ||
- name: "publish release" | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
working-directory: "release" | ||
run: | | ||
gh release edit "${{ needs.releasePlease.outputs.release_name }}" --draft=false --latest=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
".": "3.0.0" | ||
".": "3.0.0", | ||
"operator": "0.6.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.