-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e31cfb
commit c44d164
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: treadmill-ci-test | ||
env: | ||
TERM: xterm # Makes tput work in actions output | ||
|
||
# Controls when the action will run. Triggers the workflow on pull request and | ||
# merge group checks: | ||
# | ||
# KEEP IN SYNC WITH `environment:` ATTRIBUTE BELOW: | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev/tock-hardware-ci | ||
# Pull requests from forks will not have access to the required GitHub API | ||
# secrets below, even if they are using an appropriate deployment environment | ||
# and the workflow runs have been approved according to this environment's | ||
# rules. We don't know whether this is a bug on GitHub's end or deliberate. | ||
# Either way, for now we disable this workflow to run on PRs until we have | ||
# an API proxy that securely performs these GitHub API calls (adding runners | ||
# and starting Treadmill jobs with those runner registration tokens), which | ||
# allows this workflow to run without access to repository secrets. | ||
#pull_request: | ||
merge_group: # Run CI for the GitHub merge queue | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
call-treadmill-ci: | ||
uses: ./.github/workflows/treadmill-ci.yml | ||
with: | ||
repository: 'tock/tock-hardware-ci' | ||
environment: ${{ github.event_name == 'pull_request' && 'treadmill-ci' || 'treadmill-ci-merged' }} |