File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,17 @@ jobs:
3434 is_fork : ${{ steps.is_fork.outputs.is_fork }}
3535
3636 steps :
37+ # if pull_request and fork then finds base repo
3738 - id : base_repo
3839 run : |
39- if [ ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} ]; then
40+ if [ " ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}" = "true" ]; then
4041 echo "name=${{github.event.pull_request.base.repo.full_name}}" >> "$GITHUB_OUTPUT"
4142 else
4243 echo "name=${{ github.event.repo.name }}" >> "$GITHUB_OUTPUT"
4344 fi
4445 - id : is_fork
4546 run : |
46- if [ ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} ]; then
47+ if [ " ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}" = "true" ]; then
4748 echo "is_fork=true" >> "$GITHUB_OUTPUT"
4849 else
4950 echo "is_fork=false" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments