Skip to content

Commit

Permalink
wrote addition that retrieves paths without running basename
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Jan 31, 2024
1 parent a2664b9 commit 865f80b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/actions/constellation_create/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,21 @@ runs:
!(terraform).log
encryptionSecret: ${{ inputs.encryptionSecret }}

- name: Get terraform state paths
if: always()
shell: bash
run: |
shopt -s extglob
paths=constellation*-terraform/!(plan.zip|.terraform)
echo "TF_PATHS=$paths" >> $GITHUB_ENV
- name: Upload terraform state
if: always()
uses: ./.github/actions/artifact_upload
with:
name: terraform-state-${{ inputs.artifactNameSuffix }}
path: >
constellation*-terraform/!(.terraform|plan.zip)
${{ env.TF_PATHS }}
encryptionSecret: ${{ inputs.encryptionSecret }}

0 comments on commit 865f80b

Please sign in to comment.