Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion actions/comment/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: 'comment'
description: 'Action to comment {touchstone} results on the appropriate PR. Needs read/write access.'
inputs:
GITHUB_TOKEN:
description: 'The GITHUB_TOKEN secret.'
required: true
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -28,7 +32,7 @@ runs:
- name: 'Comment on PR'
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ inputs.GITHUB_TOKEN }}
script: |
var fs = require('fs');
var issue_number = Number(fs.readFileSync('./NR'));
Expand Down
2 changes: 2 additions & 0 deletions inst/touchstone-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ jobs:
github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: lorenzwalthert/touchstone/actions/comment@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}