From bdbb6d79a94154cad7032f4fed2935c79c2615cc Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 9 May 2024 07:56:52 -0400 Subject: [PATCH] - fixes variable in issues automation script Signed-off-by: Vincent Biret --- .github/workflows/project-auto-add.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/project-auto-add.yml b/.github/workflows/project-auto-add.yml index af0fb3a2c9..00534c925a 100644 --- a/.github/workflows/project-auto-add.yml +++ b/.github/workflows/project-auto-add.yml @@ -9,7 +9,7 @@ on: types: - opened branches: - - 'main' + - "main" jobs: track_issue: @@ -25,9 +25,9 @@ jobs: - name: Check if issue has language specified env: - GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} + ISSUE_BODY: ${{github.event.issue.body}} run: | - language=$(awk '/SDK language/{flag=1;next} /Describe/{flag=0} flag' <<< "${{github.event.issue.body}}" | tr -d '[:space:]') + language=$(awk '/SDK language/{flag=1;next} /Describe/{flag=0} flag' <<< "$ISSUE_BODY" | tr -d '[:space:]') allowedList="PHP Python Go TypeScript Csharp Java PowerShell CLI Ruby Swift" if [[ $allowedList =~ (^|[[:space:]])$language($|[[:space:]]) ]]; then echo "$language is in allowed list";