Skip to content

Commit

Permalink
Remove unnecessary ids and needs in steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalez committed Sep 14, 2023
1 parent 1c60c49 commit 6a630d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ jobs:
check-helm-chart:
runs-on: ubuntu-latest
steps:
- id: checkout-anycable-helm
name: Checkout anycable-helm
- name: Checkout anycable-helm
uses: actions/checkout@v4
with:
path: anycable-helm/

- id: setup-helm
name: Setup Helm
- name: Setup Helm
uses: azure/setup-helm@v3

- id: run-linter
name: Run Helm Linter
- name: Run Helm Linter
run: helm lint anycable-helm/anycable-go
21 changes: 5 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,26 @@ jobs:
release-helm-chart:
runs-on: ubuntu-latest
steps:
- id: checkout-repository
name: Checkout anycable-helm
- name: Checkout anycable-helm
uses: actions/checkout@v4
with:
path: anycable-helm/

- id: setup-helm
name: Setup Helm
- name: Setup Helm
uses: azure/setup-helm@v3

- id: prepare-gh-pages
uses: actions/checkout@v4
needs: checkout-repository
- uses: actions/checkout@v4
with:
path: helm-repository/
ref: gh-pages

- id: pack-chart-version
name: Pack the current chart version
needs:
- setup-helm
- prepare-gh-pages
- name: Pack the current chart version
run: helm package -d helm-repository/ anycable-helm/anycable-go/

- id: reindex-helm-repository
needs: pack-chart-version
name: Reindex Helm repository
- name: Reindex Helm repository
run: helm repo index --url https://helm.anycable.net/ --merge helm-repository/index.yaml helm-repository/

- name: Commit & Push gh-pages with a new chart
needs: reindex-helm-repository
run: |
cd helm-repository/
git config user.name github-actions
Expand Down

0 comments on commit 6a630d9

Please sign in to comment.