-
-
Notifications
You must be signed in to change notification settings - Fork 203
Description
Is your feature request related to a problem? Please describe.
Not all strings get encoded using block styling, and I'd like that for long strings. In fact, some strings really aren't getting this treatment at all. Here's an example:
- name: git-config
run: |-
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
- uses: frenck/action-setup-yq@v1
- name: update-application-yaml
run: "yq e '.spec.source.targetRevision = \"${{ env.ARGOCD_APPLICATION_NEW_TARGET_REVISION }}\"' \\\n'${ARGOCD_APPLICATION_FILE}'"
- name: git-add-commit
run: |-
git add "${ARGOCD_APPLICATION_FILE}"
git commit -m "${GIT_COMMIT_MESSAGE}"
- uses: actions-js/push@v1.5
with:
branch: ""
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: argocd-login
run: argocd login "${ARGOCD_URL}" --grpc-web --skip-test-tls
- name: argocd-upsert
run: "argocd app create --upsert --file \"${ARGOCD_APPLICATION_FILE}\" \\\n --grpc-web \\\n --sync-retry-backoff-factor 2 \\\n --sync-retry-backoff-max-duration 3m0s \\\n --sync-retry-limit 2 \\\n ;"
✅ the git-config looks good
❌ the yq run string should be block format
❌ the argocd app create run string should be block format
nice to have: the argocd login string could be made more readable by putting it in block format.
I don't have control over some of structs and their struct tags, so generally, I need more control over the "style" of the yaml that's produced.
Describe the solution you'd like
Encoding option to use block-style strings, with an option to use it even for single-line strings over a certain length.
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.