Skip to content

Commit

Permalink
chore: remove goreleaser job for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotxx committed Aug 28, 2024
1 parent 1e557f0 commit 3af7188
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,23 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Determine GoReleaser Config with Regex
run: |
tag=${GITHUB_REF#refs/tags/}
alpha='v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
beta='v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
rc='v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
release='v[0-9]+.[0-9]+.[0-9]+'
if [[ $tag =~ $alpha ]] || [[ $tag =~ $beta ]]; then
echo "Match found for alpha or beta tag"
echo "GO_RELEASER_CONFIG=.goreleaser-dev.yml" >> $GITHUB_ENV
elif [[ $tag =~ $rc ]] || [[ $tag =~ $release ]]; then
echo "Match found for rc or release tag"
echo "GO_RELEASER_CONFIG=.goreleaser.yml" >> $GITHUB_ENV
else
echo "No match found"
exit 1
fi
# - name: Determine GoReleaser Config with Regex
# run: |
# tag=${GITHUB_REF#refs/tags/}
# alpha='v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
# beta='v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
# rc='v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
# release='v[0-9]+.[0-9]+.[0-9]+'
# if [[ $tag =~ $alpha ]] || [[ $tag =~ $beta ]]; then
# echo "Match found for alpha or beta tag"
# echo "GO_RELEASER_CONFIG=.goreleaser-dev.yml" >> $GITHUB_ENV
# elif [[ $tag =~ $rc ]] || [[ $tag =~ $release ]]; then
# echo "Match found for rc or release tag"
# echo "GO_RELEASER_CONFIG=.goreleaser.yml" >> $GITHUB_ENV
# else
# echo "No match found"
# exit 1
# fi

- name: Get new chart version from the chart repo
id: get_chart_version
Expand All @@ -122,8 +122,8 @@ jobs:
- name: Checkout Target repository
uses: actions/checkout@v3
with:
repository: KusionStack/charts
path: charts
repository: KusionStack/charts
path: charts
token: ${{ secrets.GITHUB_TOKEN }}

- name: Bump version in the related HelmChart Chart.yaml
Expand All @@ -134,7 +134,7 @@ jobs:
changes: '{"version":"${{ steps.get_chart_version.outputs.new_chart_version }}", "appVersion":"${{ steps.get_version.outputs.VERSION }}"}'
value: ${{ steps.get_version.outputs.VERSION }}
branch: bump-karpor-to-${{ steps.get_version.outputs.VERSION }}
targetBranch: chart-version-updater
targetBranch: chart-version-updater
createPR: false
message: 'refactor: bump karpor version to ${{ steps.get_version.outputs.VERSION }}'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -145,4 +145,4 @@ jobs:
echo "Testing complete. Check the logs for details."
echo "New chart version: ${{ steps.get_chart_version.outputs.new_chart_version }}"
echo "App version: ${{ steps.get_version.outputs.VERSION }}"

0 comments on commit 3af7188

Please sign in to comment.