From b5379ad6b76ddbce59cf7811949a12d87d520606 Mon Sep 17 00:00:00 2001 From: davidko Date: Mon, 21 Aug 2023 19:09:48 +0800 Subject: [PATCH] chore(ghaction): create backport issues if actor is member Signed-off-by: davidko --- .github/workflows/add-to-projects.yml | 2 +- .github/workflows/create-issue.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-to-projects.yml b/.github/workflows/add-to-projects.yml index 1d90d68..a2dd30f 100644 --- a/.github/workflows/add-to-projects.yml +++ b/.github/workflows/add-to-projects.yml @@ -36,5 +36,5 @@ jobs: with: project-url: https://github.com/orgs/longhorn/projects/4 github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} - labeled: kind/test, area/test-infra + labeled: kind/test, area/infra label-operator: OR diff --git a/.github/workflows/create-issue.yml b/.github/workflows/create-issue.yml index 7c16c72..0b12cc2 100644 --- a/.github/workflows/create-issue.yml +++ b/.github/workflows/create-issue.yml @@ -11,7 +11,7 @@ jobs: uses: tspascoal/get-user-teams-membership@v1.0.4 id: is-longhorn-member with: - username: ${{ github.event.issue.user.login }} + username: ${{ github.actor }} organization: longhorn GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} - name: Get Backport Version @@ -87,7 +87,7 @@ jobs: uses: tspascoal/get-user-teams-membership@v1.0.4 id: is-longhorn-member with: - username: ${{ github.event.issue.user.login }} + username: ${{ github.actor }} organization: longhorn GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} - name: Check if Automation Issue Exists