From 31d79048ff0aeec51096c1a6c1b3204190597903 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Sat, 30 Dec 2023 06:40:24 -0500 Subject: [PATCH] fix(action/settings): move settings lookup --- action.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 2054ea2dc..c973d6017 100644 --- a/action.yml +++ b/action.yml @@ -72,14 +72,6 @@ runs: run: |- echo "ATMOS_CLI_CONFIG_PATH=$(realpath ${{ steps.config.outputs.atmos-config-path }})" >> $GITHUB_ENV - - name: Filter Atmos Settings Value - uses: cloudposse/github-action-atmos-get-setting@v1 - id: atmos-github-actions-enabled - with: - component: ${{ inputs.component }} - stack: ${{ inputs.stack }} - settings-path: settings.github.actions_enabled - - name: Cache Dependencies id: cache-dependencies uses: actions/cache/restore@v3 @@ -140,6 +132,14 @@ runs: /runner/_work/_tool/suzuki-shunsuke/tfcmt/v4.6.0/linux-x64/tfcmt key: atmos-plan-${{ hashFiles( inputs.atmos-gitops-config-path ) }} + - name: Filter Atmos Settings Value + uses: cloudposse/github-action-atmos-get-setting@v1 + id: atmos-github-actions-enabled + with: + component: ${{ inputs.component }} + stack: ${{ inputs.stack }} + settings-path: settings.github.actions_enabled + - name: Find component path if: ${{ steps.atmos-github-actions-enabled.outputs.value == 'true' }} uses: cloudposse/github-action-atmos-get-setting@v1