File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2929 - name : Clone and patch mock-worker
3030 run : |
3131 git clone https://github.com/runpod-workers/mock-worker
32- echo "git+https://github.com/runpod/runpod-python.git@${{ github.event.pull_request.head.sha }}" > mock-worker/builder/requirements.txt
32+ GIT_SHA=${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
33+ echo "git+https://github.com/runpod/runpod-python.git@$GIT_SHA" > mock-worker/builder/requirements.txt
3334
3435 - name : Set up QEMU
3536 uses : docker/setup-qemu-action@v3
4546
4647 - name : Define Docker Tag
4748 id : docker_tag
48- run : echo "DOCKER_TAG=$(echo ${{ github.event.pull_request.head.sha }} | cut -c 1-7)" >> $GITHUB_ENV
49+ run : |
50+ DOCKER_TAG=${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
51+ echo "DOCKER_TAG=$(echo $DOCKER_TAG | cut -c 1-7)" >> $GITHUB_ENV
4952
5053 - name : Set Docker Tag as Output
5154 id : output_docker_tag
You can’t perform that action at this time.
0 commit comments