@@ -72,89 +72,71 @@ inputs:
7272runs :
7373 using : " composite"
7474 steps :
75- - name : Install tools
76- uses : jenseng/dynamic-uses@v1
77- if : ${{ inputs.skip-startup == 'true' || inputs.state-backend == 'preview' }}
78- env :
79- action-version : ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
80- with :
81- uses : LocalStack/setup-localstack/tools@${{ env.action-version }}
82- with : |-
83- {
84- "install-awslocal": "${{ inputs.install-awslocal }}",
85- }
75+ - run : ls -la /home/runner/work/_actions
76+ shell : bash
8677
87- - name : Start Localstack
88- uses : jenseng/dynamic-uses@v1
89- if : ${{ inputs.skip-startup != 'true' && inputs.state-backend != 'preview' }}
90- env :
91- action-version : ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
92- with :
93- # now we can dynamically determine sub-action versions 🥳
94- uses : LocalStack/setup-localstack/startup@${{ env.action-version }}
95- # the `with` needs to be converted to a valid json string
96- # keeping in there install-awslocal for backward compatibility
97- with : |-
98- {
99- "image-tag": "${{ inputs.image-tag }}",
100- "install-awslocal": "${{ inputs.install-awslocal }}",
101- "use-pro": "${{ inputs.use-pro }}",
102- "configuration": "${{ inputs.configuration }}",
103- "ci-project": "${{ inputs.ci-project }}",
104- "skip-wait": "${{ inputs.skip-wait }}"
105- }
78+ - run : ls -la /home/runner/work/_actions/LocalStack/setup-localstack
79+ shell : bash
10680
107- # Use different artifact from current workflow's by passing the workflow's id as WORKFLOW_ID env variable
108- - name : Manage state
109- if : ${{ inputs.state-action == 'save' || inputs.state-action == 'load' }}
110- uses : jenseng/dynamic-uses@v1
111- env :
112- action-version : ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
113- with :
114- uses : LocalStack/setup-localstack/${{ inputs.state-backend }}@${{ env.action-version }}
115- with : |-
116- {
117- "name": "${{ inputs.state-name }}",
118- "action": "${{ inputs.state-action }}"
119- }
81+ # - name: Install tools
82+ # uses: jenseng/dynamic-uses@v1
83+ # if: ${{ inputs.skip-startup == 'true' || inputs.state-backend == 'preview' }}
84+ # env:
85+ # action-version: ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
86+ # with:
87+ # uses: LocalStack/setup-localstack/tools@${{ env.action-version }}
88+ # with: |-
89+ # {
90+ # "install-awslocal": "${{ inputs.install-awslocal }}",
91+ # }
12092
121- - name : Create Ephemeral Instance
122- if : ${{ inputs.state-action == 'start' && inputs.state-backend == 'preview' }}
123- uses : jenseng/dynamic-uses@v1
124- env :
125- action-version : ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
126- with :
127- uses : LocalStack/setup-localstack/preview@${{ env.action-version }}
128- with : |-
129- {
130- "github-token": "${{ inputs.github-token }}",
131- "preview-cmd": "${{ inputs.preview-cmd }}",
132- "auto-load-pod": "${{ inputs.state-name }}"
133- }
93+ # - name: Start Localstack
94+ # uses: ./../../_actions/LocalStack/setup-localstack/startup
95+ # if: ${{ inputs.skip-startup != 'true' && inputs.state-backend != 'preview' }}
96+ # with:
97+ # image-tag: ${{ inputs.image-tag }}
98+ # # keeping install-awslocal for backward compatibility
99+ # install-awslocal: ${{ inputs.install-awslocal }}
100+ # use-pro: ${{ inputs.use-pro }}
101+ # configuration: ${{ inputs.configuration }}
102+ # ci-project: ${{ inputs.ci-project }}
103+ # skip-wait: ${{ inputs.skip-wait }}
134104
135- - name : Display Ephemeral Instance URL
136- if : ${{ inputs.state-action == 'start' && inputs.state-backend == 'preview' && (inputs.include-preview == 'true' || inputs.ci-project != '') }}
137- uses : jenseng/dynamic-uses@v1
138- env :
139- action-version : ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
140- default-include-preview : ${{ fromJSON('["false","true"]')[github.event_name == 'pull_request'] }}
141- with :
142- uses : LocalStack/setup-localstack/finish@${{ env.action-version }}
143- with : |-
144- {
145- "github-token": "${{ inputs.github-token }}",
146- "ci-project": "${{ inputs.ci-project }}",
147- "include-preview": "${{ fromJSON(format('["{0}","{1}"]', env.include-preview, inputs.include-preview))[inputs.include-preview != ''] }}"
148- }
105+ # # Use different artifact from current workflow's by passing the workflow's id as WORKFLOW_ID env variable
106+ # - name: Manage state
107+ # if: ${{ inputs.state-action == 'save' || inputs.state-action == 'load' }}
108+ # uses: jenseng/dynamic-uses@v1
109+ # with:
110+ # # now we can dynamically determine sub-actions 🥳
111+ # uses: ./../../_actions/LocalStack/setup-localstack/${{ inputs.state-backend }}
112+ # # the `with` needs to be converted to a valid json string
113+ # with: |-
114+ # {
115+ # "name": "${{ inputs.state-name }}",
116+ # "action": "${{ inputs.state-action }}"
117+ # }
118+
119+ # - name: Create Ephemeral Instance
120+ # if: ${{ inputs.state-action == 'start' && inputs.state-backend == 'preview' }}
121+ # uses: ./../../_actions/LocalStack/setup-localstack/preview
122+ # with:
123+ # github-token: ${{ inputs.github-token }}
124+ # preview-cmd: ${{ inputs.preview-cmd }}
125+ # auto-load-pod: ${{ inputs.state-name }}
126+
127+ # - name: Display Ephemeral Instance URL
128+ # if: ${{ inputs.state-action == 'start' && inputs.state-backend == 'preview' && (inputs.include-preview == 'true' || inputs.ci-project != '') }}
129+ # env:
130+ # default-include-preview: ${{ fromJSON('["false","true"]')[github.event_name == 'pull_request'] }}
131+ # uses: ./../../_actions/LocalStack/setup-localstack/finish
132+ # with:
133+ # github-token: ${{ inputs.github-token }}
134+ # ci-project: ${{ inputs.ci-project }}
135+ # include-preview: ${{ fromJSON(format('["{0}","{1}"]', env.include-preview, inputs.include-preview))[inputs.include-preview != ''] }}
136+
149137
150- - name : Stop Ephemeral Instance
151- if : ${{ !inputs.skip-preview-stop && inputs.state-action == 'stop' && inputs.state-backend == 'preview' }}
152- uses : jenseng/dynamic-uses@v1
153- env :
154- action-version : ${{ fromJSON(format('["{0}","{1}"]', github.ref_name, github.head_ref))[github.event_name == 'pull_request'] }}
155- with :
156- uses : LocalStack/setup-localstack/ephemeral/shutdown@${{ env.action-version }}
157- with : |-
158- {
159- "name": "${{ inputs.github-token }}",
160- }
138+ # - name: Stop Ephemeral Instance
139+ # if: ${{ !inputs.skip-preview-stop && inputs.state-action == 'stop' && inputs.state-backend == 'preview' }}
140+ # uses: ./../../_actions/LocalStack/setup-localstack/ephemeral/shutdown
141+ # with:
142+ # name: ${{ inputs.github-token }}
0 commit comments