File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,16 @@ runs:
8484 if : always()
8585 run : |
8686 SECONDS=0
87+ env_file=env.user
88+ touch $env_file
89+ for var in $(env | cut -d "=" -f 1); do
90+ value="${!var}"
91+ echo "$var=$value" >> "$env_file"
92+ done
8793 docker pull gitstream/rules-engine:latest
8894 echo "docker-pull-duration=$SECONDS" >> $GITHUB_OUTPUT
8995 SECONDS=0
90- docker run -v $(pwd)/gitstream:/code -e USE_CACHE=${{ steps.cache-gitstream-results.outputs.cache-hit }} -e HEAD_REF=${{ github.event.inputs.head_ref }} -e BASE_REF=${{ github.event.inputs.base_ref }} -e CLIENT_PAYLOAD=${{ github.event.inputs.client_payload }} -e RULES_RESOLVER_URL=${{ github.event.inputs.resolver_url }} -e RULES_RESOLVER_TOKEN=${{ github.event.inputs.resolver_token }} -e DEBUG_MODE=${{ github.event.inputs.debug_mode }} gitstream/rules-engine
96+ docker run --env-file $env_file - v $(pwd)/gitstream:/code -e USE_CACHE=${{ steps.cache-gitstream-results.outputs.cache-hit }} -e HEAD_REF=${{ github.event.inputs.head_ref }} -e BASE_REF=${{ github.event.inputs.base_ref }} -e CLIENT_PAYLOAD=${{ github.event.inputs.client_payload }} -e RULES_RESOLVER_URL=${{ github.event.inputs.resolver_url }} -e RULES_RESOLVER_TOKEN=${{ github.event.inputs.resolver_token }} -e DEBUG_MODE=${{ github.event.inputs.debug_mode }} gitstream/rules-engine
9197 echo "docker-run-duration=$SECONDS" >> $GITHUB_OUTPUT
9298 echo "action-run-duration=$(($EPOCHSECONDS - ${{ steps.start.outputs.timestamp }}))" >> $GITHUB_OUTPUT
9399 shell : bash
You can’t perform that action at this time.
0 commit comments