Skip to content

Commit

Permalink
Merge pull request #46 from linear-b/revert-45-LINBEE-1956
Browse files Browse the repository at this point in the history
Revert "LINBEE-1956 | fix forks with same branch names"
  • Loading branch information
EladKohavi authored Aug 15, 2023
2 parents 19c282c + 8512cec commit aaffbf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit aaffbf2

Please sign in to comment.