diff --git a/.github/workflows/github-actions.yaml b/.github/workflows/github-actions.yaml index 73fdf03d..1612c6db 100644 --- a/.github/workflows/github-actions.yaml +++ b/.github/workflows/github-actions.yaml @@ -11,9 +11,11 @@ jobs: steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - run: echo "🔎 The name of your branch is ${{ github.head_ref || github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref || github.ref }} - uses: actions/setup-java@v3 with: distribution: temurin