Skip to content

Commit

Permalink
fix: add git diff
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <[email protected]>
  • Loading branch information
Shengwen Yu committed Mar 28, 2024
1 parent 6fa0bfb commit 98a8ef0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,21 @@ jobs:
helm push ${{ env.PACKAGE_PATH }} oci://ghcr.io/${{ github.actor }}
- name: Upload to chart repository
run: |
echo "${{ toJson(github.event) }}"
pwd
ls
set -e
git config --global user.email "${{ github.event.actor.login }}@users.noreply.github.com"
git config --global user.name "${{ github.event.repository.name }} CI"
git fetch origin chart-repository
git checkout chart-repository
mkdir -p ../helm-temp
cd ../helm-temp
cp ${{ env.PACKAGE_PATH }} .
helm repo index --merge ../harbor-helm/index.yaml .
mv ./* ../harbor-helm
cd ../harbor-helm
git status
git diff
git add .
git commit -s "feat: Upload Harbor ${{ github.event.release.tag_name }} to chart repository"
git status
git diff
git commit -s "feat: Upload Harbor 1.14.2 to chart repository"
git push origin chart-repository
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 98a8ef0

Please sign in to comment.