Skip to content

Commit

Permalink
Update main.yml (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzautke authored Nov 26, 2024
1 parent f265850 commit ea7261a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,15 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout code
- name: Checkout code (PR)
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Checkout code (Main)
uses: actions/checkout@v4
if: github.event_name != 'pull_request'

# Java and .NET are already installed on ubuntu-latest

Expand Down

0 comments on commit ea7261a

Please sign in to comment.