Skip to content

Commit

Permalink
fix checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Sep 4, 2024
1 parent 4da5381 commit 3d5148f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
pull_request:
workflow_dispatch:
inputs:
checkout-ref:
description: "The branch, tag or SHA to checkout. See actions/checkout 'ref'."
required: false
type: string

concurrency:
group: "Build Project: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
Expand All @@ -14,6 +19,11 @@ jobs:
validate-gradle-wrapper:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout-ref || github.ref }}

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

Expand All @@ -30,7 +40,7 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
ref: ${{ inputs.checkout-ref || github.ref }}

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

0 comments on commit 3d5148f

Please sign in to comment.