diff --git a/action.yml b/action.yml index 3fdef5d1..75682381 100644 --- a/action.yml +++ b/action.yml @@ -63,8 +63,8 @@ runs: cd repo git fetch --deepen=$all origin ${{ github.event.inputs.base_ref }} git remote add upstream ${{ fromJSON(fromJSON(github.event.inputs.client_payload)).headHttpUrl || fromJSON(fromJSON(github.event.inputs.client_payload)).repoUrl }} - git checkout -b upstream/${{ github.event.inputs.head_ref }} git fetch --deepen=$all upstream ${{ github.event.inputs.head_ref }} + git checkout -b ${{ github.event.inputs.head_ref }} upstream/${{ github.event.inputs.head_ref }} shell: bash - name: Create cm folder id: create-cm-folder @@ -93,7 +93,7 @@ runs: docker pull gitstream/rules-engine:latest echo "docker-pull-duration=$SECONDS" >> $GITHUB_OUTPUT SECONDS=0 - docker run --env-file $env_file -v $(pwd)/gitstream:/code -e USE_CACHE=${{ steps.cache-gitstream-results.outputs.cache-hit }} -e HEAD_REF=upstream/${{ 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 + 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 echo "docker-run-duration=$SECONDS" >> $GITHUB_OUTPUT echo "action-run-duration=$(($EPOCHSECONDS - ${{ steps.start.outputs.timestamp }}))" >> $GITHUB_OUTPUT shell: bash