Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 38 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,52 @@ name: Release Charts
on:
push:
branches:
- master
- SRE-4495/chart-validation

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Index checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: gh-pages
path: index
sparse-checkout: |
index.yaml
sparse-checkout-cone-mode: false

- uses: fabasoad/data-format-converter-action@main
id: yaml2json
with:
input: "index/index.yaml"
from: yaml
to: json

- name: Print index
run: echo "${{ steps.yaml2json.outputs.output }}"

- name: Configure Git
- name: Print python
shell: python -u {0}
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
print("hello world!")

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.0
- name: Checkout
uses: actions/checkout@v2
with:
charts_repo_url: https://dave-inc.github.io/charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0

- run: |
git diff --name-only master

# - name: Configure Git
# run: |
# git config user.name "$GITHUB_ACTOR"
# git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
#
# - name: Run chart-releaser
# uses: helm/chart-releaser-action@v1.4.0
# with:
# charts_repo_url: https://dave-inc.github.io/charts
# env:
# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"