File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1515 steps :
1616 - name : Checkout code
1717 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
18+ with :
19+ fetch-depth : 0
1820
1921 - name : Set release version
2022 id : release_version
6567 --git-repo=ceph-csi-operator \
6668 --token=${{ secrets.CSI_GITHUB_TOKEN }} \
6769 --package-path=.csi-op-release-packages
70+ --release-name-template="v{{ .Version }}"
6871
6972 - name : Update Helm repo index and push to gh-pages
7073 run : |
7376 git config --global user.name "GitHub Actions"
7477
7578 git checkout deploy/charts/ceph-csi-operator/Chart.yaml deploy/charts/ceph-csi-drivers/Chart.yaml
76- echo "Checking if gh-pages branch exists..."
77- git fetch origin gh-pages || git checkout --orphan gh-pages
7879 git checkout gh-pages
79- echo "If gh-pages branch didn't exist, it has been created."
80+ mkdir -p .cr-index
8081
8182 echo "pushing it to the github pacges"
8283 mkdir -p .cr-index
9192 cp -r .cr-index/* .
9293 git add .
9394 git commit -m "Update Helm repo index from release ${{ github.event.release.tag_name }}"
94- git push origin gh-pages
95+ git push origin gh-pages -f
9596
9697
9798
You can’t perform that action at this time.
0 commit comments