Skip to content

Commit

Permalink
Use GHA files from styler package
Browse files Browse the repository at this point in the history
  • Loading branch information
rstub committed Apr 23, 2024
1 parent 270e4c3 commit bb35caf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/touchstone-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
upload:
runs-on: ubuntu-latest
if: >
${{ github.event.workflow_run.event == 'pull_request' }}
${{ github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: lorenzwalthert/touchstone/actions/comment@v1
with:
- uses: lorenzwalthert/touchstone/actions/comment@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 15 additions & 13 deletions .github/workflows/touchstone-receive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +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 &&
(
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR'
)
runs-on: ubuntu-latest
outputs:
config: ${{ steps.read_touchstone_config.outputs.config }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -47,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 }}

0 comments on commit bb35caf

Please sign in to comment.