Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
needs: [setup]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./
id: current
Expand Down Expand Up @@ -80,31 +80,31 @@ jobs:
service-config-ssm-path: service/app/config/custom/app-ns
foo: bar

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
with:
actual: "${{ steps.current.outputs.namespace }}"
expected: '${{ matrix.expected-namespace }}'

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
if: ${{ matrix.expected-cluster-role }}
with:
actual: "${{ steps.current.outputs.role }}"
expected: '${{ matrix.expected-cluster-role }}'

- name: Environment info
uses: cloudposse/github-action-yaml-config-query@v1.0.0
uses: cloudposse/github-action-yaml-config-query@8178e0c0d186f53de40f6bcf8e039f1e6a9aefc5 # v1.0.1
id: result
with:
query: .
config: ${{ steps.current.outputs.environment-config }}

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
if: ${{ matrix.expected-foo }}
with:
actual: "${{ steps.result.outputs.foo }}"
expected: '${{ matrix.expected-foo }}'

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@0efd6166067d9c59d89c710fab4f79fb066f8985 # v4.0.1
if: ${{ matrix.expected-service-config-ssm-path }}
with:
actual: "${{ steps.result.outputs.service-config-ssm-path }}"
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runs:
using: "composite"
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- run: |
echo '''${{ inputs.config }}''' > config.yml
Expand All @@ -63,7 +63,7 @@ runs:

- name: Evaluate Config
id: parse-config
uses: actions/github-script@v6
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
let data = JSON.parse(`${{ steps.yaml-to-json.outputs.output }}`);
Expand Down Expand Up @@ -127,7 +127,7 @@ runs:

- name: Merge Substitutions
id: merge-config
uses: actions/github-script@v6
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
let data = JSON.parse(`${{ steps.parse-config.outputs.stripped-config }}`);
Expand All @@ -148,7 +148,7 @@ runs:
to: "yaml"

- name: Environment info
uses: cloudposse/github-action-yaml-config-query@v1.0.0
uses: cloudposse/github-action-yaml-config-query@8178e0c0d186f53de40f6bcf8e039f1e6a9aefc5 # v1.0.1
id: result
with:
query: .
Expand Down
Loading