Skip to content

Migrate to connect-es #900

Migrate to connect-es

Migrate to connect-es #900

Workflow file for this run

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.