Skip to content

Commit

Permalink
ci: add a wait before next step
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelgatelement committed Jul 25, 2024
1 parent 0061412 commit d9fb45c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ jobs:
rm -rf ./helm/operator
rm -rf ./helm/updater
- name: Wait for gh-pages to be up to date
run: |
URL="https://element-hq.github.io/ess-starter-edition-core/element-operator-${VERSION}.tar.gz"
STATUS=0
while [ $STATUS -ne 200 ]; do
echo "Checking URL: $URL"
STATUS=$(curl -s -o /dev/null -w "%{http_code}" $URL)
if [ $STATUS -ne 200 ]; then
echo "Status: $STATUS. Not 200 OK, retrying in 5 seconds..."
sleep 5
else
echo "Status: $STATUS. URL is accessible."
fi
done
- name: Run chart-releaser
uses: element-hq/chart-releaser-action@1389a6afc9af1b11ab9e79267f371d694e4995b2
env:
Expand Down

0 comments on commit d9fb45c

Please sign in to comment.