Skip to content

Commit

Permalink
Merge pull request #351 from i5okie/feature/fix-chart-release-action
Browse files Browse the repository at this point in the history
Remove index validation step in Helm chart releaser workflow
  • Loading branch information
esune authored Sep 25, 2023
2 parents 0e9f57d + 1a89934 commit 5305877
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/chart_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,9 @@ on:
workflow_dispatch:

jobs:
# Sometimes chart-releaser might fetch an outdated index.yaml from gh-pages, causing a WAW hazard on the repo
# This job checks the remote file is up to date with the local one on release
validate-gh-pages-index:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: gh-pages
- name: Download remote index file and check equality
run: |
curl -vsSL https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/index.yaml > index.yaml.remote
LOCAL="$(md5sum < index.yaml)"
REMOTE="$(md5sum < index.yaml.remote)"
echo "$LOCAL" = "$REMOTE"
test "$LOCAL" = "$REMOTE"
chart-release:
name: Create chart release
runs-on: ubuntu-latest
needs: [ validate-gh-pages-index ]
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 5305877

Please sign in to comment.