Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzautke authored Dec 30, 2024
1 parent 1236a08 commit 94845e2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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 All @@ -43,8 +50,7 @@ jobs:
SUSHI_OPTIONS: Resources/
EXPECTED_FAILS: VALIDATION_CONFORMANCE_DOTNET VALIDATION_CONFORMANCE_JAVA VALIDATION_EXAMPLES_JAVA

# disabled to not rewrite local testes ressources
# - name: Add & Commit
# uses: EndBug/add-and-commit@v7
# with:
# add: 'Resources/fsh-generated/resources/'
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
add: 'Resources/fsh-generated/resources/'

0 comments on commit 94845e2

Please sign in to comment.