Skip to content

Commit

Permalink
fix sh if statement 🤯
Browse files Browse the repository at this point in the history
  • Loading branch information
jann0k committed Sep 20, 2024
1 parent 44f3d61 commit ffd1a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,17 @@ jobs:
is_fork: ${{ steps.is_fork.outputs.is_fork }}

steps:
# if pull_request and fork then finds base repo
- id: base_repo
run: |
if [ ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} ]; then
if [ "${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}" = "true" ]; then
echo "name=${{github.event.pull_request.base.repo.full_name}}" >> "$GITHUB_OUTPUT"
else
echo "name=${{ github.event.repo.name }}" >> "$GITHUB_OUTPUT"
fi
- id: is_fork
run: |
if [ ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} ]; then
if [ "${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}" = "true" ]; then
echo "is_fork=true" >> "$GITHUB_OUTPUT"
else
echo "is_fork=false" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit ffd1a9d

Please sign in to comment.