From 23d16da9fa43bcfdfcdc90a50fa71d487eaddeaf Mon Sep 17 00:00:00 2001 From: Mieszko Grodzicki Date: Sat, 31 Dec 2022 12:20:57 +0100 Subject: [PATCH] Add action checkout --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 706aebc..d196ffa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,27 +15,34 @@ jobs: name: Test without semver violation runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout test repo uses: actions/checkout@v3 with: repository: mgr0dzicki/cargo-semver-action-ref-slice ref: patch_change persist-credentials: true + - name: Checkout action + uses: actions/checkout@v3 + with: + path: action - name: Run action - uses: ./ + uses: ./action/ run-on-major-change: name: Test with semver violation runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout test repo uses: actions/checkout@v3 with: repository: mgr0dzicki/cargo-semver-action-ref-slice ref: major_change persist-credentials: true + - name: Checkout action + uses: actions/checkout@v3 + with: + path: action - name: Run action - id: action - uses: ./ + uses: ./action/ continue-on-error: true - name: Check if the action failed if: steps.action.outcome != 'failure'