From 817a36d0ed82376cc2d41158c2e5874c6e448d67 Mon Sep 17 00:00:00 2001 From: Bertrand Thomas Date: Fri, 6 Sep 2024 17:49:53 +0200 Subject: [PATCH] Update pipelines --- .github/workflows/ci.yml | 17 ++++++++++------- .github/workflows/pkg.yml | 2 ++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4822137..5d94957 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,13 +28,16 @@ jobs: outputs: apps: ${{ steps.filter.outputs.changes }} steps: - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - game-2048: src/game-2048/** - cow-demo: src/cow-demo/** - rancher-helloworld: src/rancher-helloworld/** + - name: Check-out the repository + uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + base: ${{ github.ref }} + filters: | + game-2048: src/game-2048/** + cow-demo: src/cow-demo/** + rancher-helloworld: src/rancher-helloworld/** code-check: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index 334b5d5..b204e89 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -23,6 +23,7 @@ jobs: - uses: dorny/paths-filter@v3 id: filter with: + base: ${{ github.ref }} filters: | game-2048: src/game-2048/** cow-demo: src/cow-demo/** @@ -82,6 +83,7 @@ jobs: id: deployment uses: actions/deploy-pages@v1 create-image: + needs: changes if: needs.changes.outputs.apps != '[]' strategy: matrix: