Skip to content

config: 깃허브액션 set_reviewers.yml 생성 #1

config: 깃허브액션 set_reviewers.yml 생성

config: 깃허브액션 set_reviewers.yml 생성 #1

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Set reviewers
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
pull_request:
branches: [ "main" ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
set-reviewers:
name: Set reviewers
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 1
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
name: Set reviewers
run: |

Check failure on line 23 in .github/workflows/set_reviewers.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/set_reviewers.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
actor="$"
reviewers=(@wwwr-kim0en @kwonjounghun @nagyum @onblana @NonamedBread @JiHoon-0330 @JANGSEYEONG)
reviewers=($(printf "%s\n" "${reviewers[@]}" | grep -v "$actor" | shuf -n 2))
reviewers=$(printf '%s\n' "${reviewers[@]}" | jq -R . | jq -s .)
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: token $" \
-d "{ \"reviewers\": $reviewers }" \
"https://api.github.com/repos/$/pulls/$/requested_reviewers"