Skip to content

Commit

Permalink
Fix: Rm shell multiline to
Browse files Browse the repository at this point in the history
Remove bash multi line indent to check if unmarshal yaml
errors get resolved.

Ref:
https://github.com/orgs/community/discussions/65057

Signed-off-by: Anil Belur <[email protected]>
  • Loading branch information
askb committed Nov 18, 2023
1 parent 419c8a3 commit 8bbffc6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/compose-packer-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,19 @@ jobs:
id: create-cloud-env-file
if: steps.changes.outputs.src == 'true'
shell: bash
# yamllint disable rule:line-length
run: |
echo "${{ secrets.CLOUDS_ENV_B64 }}" | base64 --decode \
> "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
echo "${{ secrets.CLOUDS_ENV_B64 }}" | base64 --decode > "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
# yamllint enable rule:line-length
- name: Create cloud.yaml file for openstack client
id: create-cloud-yaml-file
if: steps.changes.outputs.src == 'true'
shell: bash
# yamllint disable rule:line-length
run: |
mkdir -p "$HOME/.config/openstack"
echo "${{ secrets.CLOUDS_YAML_B64 }}" | base64 --decode \
> "$HOME/.config/openstack/clouds.yaml"
echo "${{ secrets.CLOUDS_YAML_B64 }}" | base64 --decode > "$HOME/.config/openstack/clouds.yaml"
# yamllint enable rule:line-length
- name: Setup Python
if: steps.changes.outputs.src == 'true'
# yamllint disable-line rule:line-length
Expand All @@ -119,6 +121,7 @@ jobs:
- name: Verify packer files
if: steps.changes.outputs.src == 'true'
shell: bash
# yamllint disable rule:line-length
run: |
set -x
cd packer
Expand Down Expand Up @@ -165,3 +168,4 @@ jobs:
done
echo "::endgroup::"
done
# yamllint enable rule:line-length

0 comments on commit 8bbffc6

Please sign in to comment.