-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade checkout action tool version to v4
Signed-off-by: zhujian <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
21 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
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 |
---|---|---|
|
@@ -8,15 +8,10 @@ env: | |
# Common versions | ||
GO_VERSION: '1.21' | ||
GO_REQUIRED_MIN_VERSION: '' | ||
GOPATH: '/home/runner/work/managed-serviceaccount/managed-serviceaccount/go' | ||
GITHUB_REF: ${{ github.ref }} | ||
CHART_NAME: managed-serviceaccount | ||
CHART_VERSION_FILE_PATH: ./charts/managed-serviceaccount/Chart.yaml | ||
|
||
defaults: | ||
run: | ||
working-directory: go/src/open-cluster-management.io/managed-serviceaccount | ||
|
||
jobs: | ||
env: | ||
name: prepare release env | ||
|
@@ -26,7 +21,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
path: go/src/open-cluster-management.io/managed-serviceaccount | ||
- name: get release version | ||
run: | | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
@@ -50,7 +44,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
path: go/src/open-cluster-management.io/managed-serviceaccount | ||
- name: install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
|
@@ -77,7 +70,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
path: go/src/open-cluster-management.io/managed-serviceaccount | ||
- name: create | ||
run: | | ||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin | ||
|
@@ -102,7 +94,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
path: go/src/open-cluster-management.io/managed-serviceaccount | ||
- name: setup helm | ||
uses: azure/setup-helm@v1 | ||
- name: chart package | ||
|
@@ -155,7 +146,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
path: go/src/open-cluster-management.io/managed-serviceaccount | ||
|
||
- name: calculate next version | ||
id: calculate_next_version | ||
|
@@ -177,9 +167,10 @@ jobs: | |
run: | | ||
gh pr list --state open > pr_list.txt | ||
cat pr_list.txt | ||
PR_EXIST=$(grep "Update chart version to ${{ steps.calculate_next_version.outputs.next_version }}" pr_list.txt && echo true || echo false) | ||
PR_EXIST=$(grep -q "Update chart version to ${{ steps.calculate_next_version.outputs.next_version }}" pr_list.txt && echo true || echo false) | ||
echo "pr_exists=$PR_EXIST" >> $GITHUB_OUTPUT | ||
echo "Pull request for version ${{ steps.calculate_next_version.outputs.next_version }} exists: $PR_EXIST" | ||
rm -rf pr_list.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
@@ -199,9 +190,7 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: | | ||
Update chart version to ${{ steps.calculate_next_version.outputs.next_version }} | ||
Signed-off-by: "$GITHUB_ACTOR" "[email protected]" | ||
title: "Update chart version to ${{ steps.calculate_next_version.outputs.next_version }}" | ||
title: ":seedling: Update chart version to ${{ steps.calculate_next_version.outputs.next_version }}" | ||
body: "Automatically updating chart version to ${{ steps.calculate_next_version.outputs.next_version }}" | ||
branch: update-chart-version-${{ steps.calculate_next_version.outputs.next_version }} | ||
signoff: true | ||
|