Skip to content

Commit ffd1a9d

Browse files
committed
fix sh if statement 🤯
1 parent 44f3d61 commit ffd1a9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎.github/workflows/maven.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)