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
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: "kompose"
path: "kompose"

View File

@ -2,7 +2,7 @@ name: Kompose CI
on:
push:
branches:
- main
- main
pull_request:
env:
# Avoid noisy outputs like "tput: No value for $TERM and no -T specified"
@ -27,23 +27,23 @@ jobs:
- name: Perform cross compile
if: ${{ matrix.cross_compile }}
run: make cross
docs:
name: Build docs and Coveralls integration
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ^1.21
- name: Install dyff
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
- name: Create .coverprofile for each targeted directory by re:running tests
run: make test
- name: Collect all .coverprofile files and save it to one file gover.coverprofile
run: gover
- name: Send coverage
run: goveralls -coverprofile=gover.coverprofile -service=github
env:
# As per https://github.com/mattn/goveralls#github-actions
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# docs:
# name: Build docs and Coveralls integration
# runs-on: ubuntu-latest
# needs: test
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: ^1.21
# - name: Install dyff
# run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
# - name: Create .coverprofile for each targeted directory by re:running tests
# run: make test
# - name: Collect all .coverprofile files and save it to one file gover.coverprofile
# run: gover
# - name: Send coverage
# run: goveralls -coverprofile=gover.coverprofile -service=github
# env:
# # As per https://github.com/mattn/goveralls#github-actions
# 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)
if idx := strings.Index(line, ": "); idx != -1 {
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
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]
}
lines[i] = prefix + value