Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSchmelter committed Dec 8, 2024
1 parent caeaad0 commit fc87d36
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,25 @@ jobs:
./gradlew checkBranchName -PbranchName="$branchName"
- name: Check Branch or PR
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "This is a pull request."
branchOrPr="PR"
branchName="${{ github.head_ref }}"
else
echo "This is a branch."
branchOrPr="Branch"
branchName="${{ github.ref_name }}"
fi
if [[ "$branchName" == refs/heads/* ]]; then
branchName="${branchName#refs/heads/}"
fi
echo "Branch or PR: $branchOrPr"
echo "Branch Name: $branchName"

- name: Setup Java
uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit fc87d36

Please sign in to comment.