Skip to content

Commit

Permalink
WIP 4
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed May 16, 2024
1 parent 34dfe94 commit 5c76b04
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 38 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/touchstone-comment.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Continuous Benchmarks (Receive)

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
name: Continuous benchmarking
on:
issue_comment:
types: ['created', 'edited']

jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Echo github obj
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

build:
if: >
github.event.issue.pull_request &&
Expand All @@ -18,16 +21,35 @@ jobs:
github.event.comment.author_association == 'COLLABORATOR'
)
permissions: read-all
runs-on: ubuntu-22.04
env:
RSPM: "https://packagemanager.posit.co/cran/__linux__/jammy/2024-05-15"
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Echo github obj
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- uses: plietar/touchstone/actions/receive@main

comment:
runs-on: ubuntu-latest
steps:
- name: Download benchmarking results
uses: actions/download-artifact@v4
with:
name: pr
pattern: info.txt

- run: find

- name: 'Comment on PR'
uses: actions/github-script@v3
script: |
var fs = require('fs');
var body = fs.readFileSync('./info.txt').toString();
await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: body
});

0 comments on commit 5c76b04

Please sign in to comment.