Files
seL4/.github/workflows/trigger.yml
Gerwin Klein e5791a76cb github: run actions with secrets only in seL4 org
Some of the Github actions in this repository require secrets for
access to hardware test or other compute infrastructure, or for
deployment. When these are run in a fork on GitHub they are safe,
but generate annoying error messages.

This commit adds tests in the relevant actions whether they are run
from the seL4 org or not, and skips the action when they are run
outside. This should make the remaining actions more useful on forks.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-10-18 14:47:07 +11:00

21 lines
415 B
YAML

# Copyright 2021, Proofcraft Pty Ltd
#
# SPDX-License-Identifier: BSD-2-Clause
# Trigger repository dispatch on main test repos
name: Trigger
on:
push:
branches: [master]
jobs:
trigger:
name: Repository Dispatch
if: ${{ github.repository_owner == 'seL4' }}
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/trigger@master
with:
token: ${{ secrets.PRIV_REPO_TOKEN }}