Skip docs workflow

This commit is contained in:
Prathamesh Musale 2025-12-01 14:07:38 +05:30
parent 11bed62f52
commit c82b499b01
3 changed files with 24 additions and 24 deletions

View File

@ -29,7 +29,7 @@ jobs:
run: make bin run: make bin
- name: Upload a Build Artifact - name: Upload a Build Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: "kompose" name: "kompose"
path: "kompose" path: "kompose"

View File

@ -27,23 +27,23 @@ jobs:
- name: Perform cross compile - name: Perform cross compile
if: ${{ matrix.cross_compile }} if: ${{ matrix.cross_compile }}
run: make cross run: make cross
docs: # docs:
name: Build docs and Coveralls integration # name: Build docs and Coveralls integration
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: test # needs: test
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- uses: actions/setup-go@v5 # - uses: actions/setup-go@v5
with: # with:
go-version: ^1.21 # go-version: ^1.21
- name: Install dyff # - name: Install dyff
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8 # run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
- name: Create .coverprofile for each targeted directory by re:running tests # - name: Create .coverprofile for each targeted directory by re:running tests
run: make test # run: make test
- name: Collect all .coverprofile files and save it to one file gover.coverprofile # - name: Collect all .coverprofile files and save it to one file gover.coverprofile
run: gover # run: gover
- name: Send coverage # - name: Send coverage
run: goveralls -coverprofile=gover.coverprofile -service=github # run: goveralls -coverprofile=gover.coverprofile -service=github
env: # env:
# As per https://github.com/mattn/goveralls#github-actions # # As per https://github.com/mattn/goveralls#github-actions
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} # COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -114,11 +114,11 @@ func unquoteHelmTemplates(yamlBytes []byte) []byte {
// that enclose the entire value (after the colon for YAML) // that enclose the entire value (after the colon for YAML)
if idx := strings.Index(line, ": "); idx != -1 { if idx := strings.Index(line, ": "); idx != -1 {
prefix := line[:idx+2] // Keep "key: " prefix := line[:idx+2] // Keep "key: "
value := line[idx+2:] // Get the value part value := line[idx+2:] // Get the value part
// Remove surrounding quotes from value if present // Remove surrounding quotes from value if present
if (strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`)) || if (strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`)) ||
(strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) { (strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) {
value = value[1 : len(value)-1] value = value[1 : len(value)-1]
} }
lines[i] = prefix + value lines[i] = prefix + value