-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Lyt99/feature/v1.0.0
remove `clean-assets` phase in github action
- Loading branch information
Showing
1 changed file
with
0 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,31 +41,6 @@ jobs: | |
user_name: github-actions[bot] | ||
user_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
|
||
clean-assets: | ||
runs-on: ubuntu-latest | ||
needs: deploy | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get latest tag | ||
run: | | ||
TAG=$(git fetch --tags && git tag --sort=-v:refname | grep -E '^kubeskoop-exporter-' | head -n 1) | ||
if [[ -n "$TAG" ]]; then | ||
PREFIX="kubeskoop-exporter-" | ||
VERSION=${TAG#$PREFIX} | ||
echo "latest tag:$TAG,version:$VERSION" | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV | ||
else | ||
echo "没有找到符合要求的tag" | ||
fi | ||
- uses: dev-drprasad/[email protected] | ||
with: | ||
tag_name: ${{ env.RELEASE_TAG }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
delete_release: true #(optional) default: true | ||
|
||
release-chart: | ||
runs-on: ubuntu-latest | ||
|