Skip to content

Commit

Permalink
fix: checkout the PR version
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfred committed Aug 19, 2024
1 parent 5614082 commit 19107ec
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/pull_request_maven_long_running.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,22 @@ jobs:
java-version: [ 17 ] # Only the first supported LTS; already too many jobs here.
timeout-minutes: 120
steps:
- name: Checkout timefold-quickstarts
- name: Checkout timefold-quickstarts (PR)
id: checkout-quickstarts-pr
uses: actions/checkout@v4
with:
repository: ${{ github.actor }}/timefold-quickstarts
ref: ${{ github.head_ref }}
path: ./timefold-quickstarts
fetch-depth: 0 # Otherwise merge will fail on account of not having history.

- name: Checkout timefold-quickstarts
if: steps.checkout-quickstarts-pr.outcome != 'success'
uses: actions/checkout@v4
with:
repository: TimefoldAI/timefold-quickstarts
ref: ${{ github.head_ref }}
path: ./timefold-quickstarts
fetch-depth: 0 # Otherwise merge will fail on account of not having history.
- name: Checkout timefold-solver (PR) # Checkout the PR branch first, if it exists
id: checkout-solver
uses: actions/checkout@v4
Expand Down Expand Up @@ -124,14 +132,22 @@ jobs:
java-version: [ 17 ] # Only the first supported LTS; already too many jobs here.
timeout-minutes: 120
steps:
- name: Checkout timefold-quickstarts
- name: Checkout timefold-quickstarts (PR)
id: checkout-quickstarts-pr
uses: actions/checkout@v4
with:
repository: ${{ github.actor }}/timefold-quickstarts
ref: ${{ github.head_ref }}
path: ./timefold-quickstarts
fetch-depth: 0 # Otherwise merge will fail on account of not having history.

- name: Checkout timefold-quickstarts
if: steps.checkout-quickstarts-pr.outcome != 'success'
uses: actions/checkout@v4
with:
repository: TimefoldAI/timefold-quickstarts
ref: ${{ github.head_ref }}
path: ./timefold-quickstarts
fetch-depth: 0 # Otherwise merge will fail on account of not having history.
- name: Checkout timefold-solver (PR) # Checkout the PR branch first, if it exists
id: checkout-solver
uses: actions/checkout@v4
Expand Down Expand Up @@ -204,14 +220,22 @@ jobs:
java-version: [ 17 ] # Only the first supported LTS; already too many jobs here.
timeout-minutes: 120
steps:
- name: Checkout timefold-quickstarts
- name: Checkout timefold-quickstarts (PR)
id: checkout-quickstarts-pr
uses: actions/checkout@v4
with:
repository: ${{ github.actor }}/timefold-quickstarts
ref: ${{ github.head_ref }}
path: ./timefold-quickstarts
fetch-depth: 0 # Otherwise merge will fail on account of not having history.

- name: Checkout timefold-quickstarts
if: steps.checkout-quickstarts-pr.outcome != 'success'
uses: actions/checkout@v4
with:
repository: TimefoldAI/timefold-quickstarts
ref: ${{ github.head_ref }}
path: ./timefold-quickstarts
fetch-depth: 0 # Otherwise merge will fail on account of not having history.
- name: Checkout timefold-solver (PR) # Checkout the PR branch first, if it exists
id: checkout-solver
uses: actions/checkout@v4
Expand Down

0 comments on commit 19107ec

Please sign in to comment.