From f84f965b2e4cd038f53748e4d85878229feaf9e7 Mon Sep 17 00:00:00 2001 From: Alexander Zautke Date: Fri, 29 Nov 2024 15:35:45 +0100 Subject: [PATCH] Update main.yml (#147) --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 781808e..704ede3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,18 +27,25 @@ 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 - name: Firely.Terminal (GitHub Actions) - uses: FirelyTeam/firely-terminal-pipeline@v0.4.1 + uses: FirelyTeam/firely-terminal-pipeline@v0.4.5 with: PATH_TO_CONFORMANCE_RESOURCES: Resources/fsh-generated/resources/ #PATH_TO_EXAMPLES: Examples # PATH_TO_QUALITY_CONTROL_RULES: qc/custom - DOTNET_VALIDATION_ENABLED: true + DOTNET_VALIDATION_ENABLED: false JAVA_VALIDATION_ENABLED: true OUTPUT_FORMAT: RAW JAVA_VALIDATION_OPTIONS: -allow-example-urls true @@ -46,7 +53,6 @@ jobs: SIMPLIFIER_PASSWORD: ${{ secrets.SIMPLIFIER_PASSWORD }} SUSHI_ENABLED: true SUSHI_OPTIONS: Resources/ - SUSHI_VERSION: 3.12.0 EXPECTED_FAILS: VALIDATION_CONFORMANCE_DOTNET VALIDATION_CONFORMANCE_JAVA VALIDATION_EXAMPLES_JAVA - name: Add & Commit