Skip to content

Fixed check-user workflow #2

Fixed check-user workflow

Fixed check-user workflow #2

Workflow file for this run

name: Check whether the workflow owner can use ARC runners

Check failure on line 1 in .github/workflows/check-user.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-user.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: check-user
on:
workflow_call:
inputs:
user_name:
required: true
type: string
description: The name of the workflow owner.
jobs:
check-user:
runs-on: linux.4xlarge
outputs:
use-rg: ${{ steps.set-condition.outputs.use-rg }}
step:
- name: Download the latest arc_users.yml
run: |
wget https://raw.githubusercontent.com/pytorch/test-infra/44e046ac67dc0ff7be98025d39984ad2e4def044/.github/arc_users.yaml
- name: Check if user is in arc_users.yml
id: set-condition
run: |
if grep -q "${{ inputs.user_name }}" arc_users.yaml; then
echo "::set-output name=use-rg::true"
else
echo "::set-output name=use-rg::false"
fi