RSDK-8802: Add StoppableWorkers.StartTimer/NextTick. #896
Workflow file for this run
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
name: PR Test Label Manager | |
on: | |
pull_request_target: | |
branches: [ main ] | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
pr_test_label_manager: | |
name: PR Test Label Manager | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request_target' && | |
contains(fromJson('["opened", "synchronize", "reopened"]'), github.event.action) | |
steps: | |
- name: Check if organization member | |
id: is_organization_member | |
uses: jamessingleton/[email protected] | |
with: | |
organization: viamrobotics | |
username: ${{ github.event.sender.login }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Always remove label | |
uses: andymckay/[email protected] | |
with: | |
repo-token: ${{ secrets.PR_TOKEN }} | |
remove-labels: "safe to test" | |
- name: Auto label org members | |
if: | | |
steps.is_organization_member.outputs.result == 'true' | |
uses: andymckay/[email protected] | |
with: | |
repo-token: ${{ secrets.PR_TOKEN }} | |
add-labels: 'safe to test' | |
- name: Add Unsafe PR Comment | |
if: | | |
steps.is_organization_member.outputs.result == 'false' | |
uses: marocchino/[email protected] | |
with: | |
recreate: true | |
message: For security reasons, this PR must be labeled with `safe to test` in order for tests to run. |