From ca1749415b3efd5d364a61a67e198c53a609e4ab Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 1 Feb 2023 09:46:16 +0000 Subject: [PATCH] use the same touchston config as styler --- .github/workflows/touchstone-receive.yaml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/touchstone-receive.yaml b/.github/workflows/touchstone-receive.yaml index a2d0c399d..fb6c12257 100644 --- a/.github/workflows/touchstone-receive.yaml +++ b/.github/workflows/touchstone-receive.yaml @@ -4,19 +4,27 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true -on: +on: pull_request: + paths: + # Directories with source code and benchmarking code + - "inst/**" + - "R/**" + - "src/**" + - "touchstone/**" + # Benchmarking config file + - ".github/workflows/touchstone-*.yaml" + # Package metadata + - DESCRIPTION jobs: prepare: - runs-on: ubuntu-latest - if: - true + runs-on: ubuntu-latest outputs: config: ${{ steps.read_touchstone_config.outputs.config }} steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v2 with: fetch-depth: 0 @@ -42,10 +50,9 @@ jobs: RSPM: ${{ matrix.config.rspm }} GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: lorenzwalthert/touchstone/actions/receive@v1 + - uses: lorenzwalthert/touchstone/actions/receive@main with: cache-version: 1 benchmarking_repo: ${{ matrix.config.benchmarking_repo }} benchmarking_ref: ${{ matrix.config.benchmarking_ref }} - benchmarking_path: ${{ matrix.config.benchmarking_path }} - force_upstream: true + benchmarking_path: ${{ matrix.config.benchmarking_path }} \ No newline at end of file