Skip to content

Commit

Permalink
setup self-hosted runner job onyx
Browse files Browse the repository at this point in the history
  • Loading branch information
idigs authored Mar 25, 2024
1 parent 18225f6 commit 2549bb4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/onyx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---

name: onyx

on:
issue_comment:
types: [created]

jobs:
excl-milan0:
if: |
github.repository_owner == 'ORNL-Fusion' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, 'Test this please')
runs-on: [ self-hosted, Linux, X64, ornl-excl-milan0 ]

steps:
# Only trigger CI for certain "actors" (those commenting the PR, not the PR originator)
- name: Verify Actor
env:
ACTOR_TOKEN: ${{ secrets.TOKENIZER }}${{ github.actor }}${{ secrets.TOKENIZER }}
ACTOR_ALLOW: ${{ secrets.ACTORLIST }}
if: contains( env.ACTOR_ALLOW, env.ACTOR_TOKEN )
id: check
run: |
echo "triggered=true" >> $GITHUB_OUTPUT

0 comments on commit 2549bb4

Please sign in to comment.