Skip to content

Commit beabcea

Browse files
author
GitHub Action
committed
add an action that builds bundles
1 parent bee6481 commit beabcea

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/build-bundle.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build JASP Module on PR Comment
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
call-build-module:
13+
# Only run if it's a PR, starts with 'build', and user has permissions
14+
if: >
15+
github.event.issue.pull_request &&
16+
startsWith(github.event.comment.body, 'build') &&
17+
contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
18+
19+
# Calls the reusable workflow from your central repo
20+
uses: jasp-stats/jasp-actions/.github/workflows/build-bundle.yml@v1
21+
22+
# Passes the local repository's GITHUB_TOKEN down so the central action can comment and checkout code
23+
secrets: inherit

0 commit comments

Comments
 (0)