Преглед изворни кода

more debugging of teams check (#3123)

Signed-off-by: Alex Meijer <alexander.meijer@ibm.com>
Alex Meijer пре 1 година
родитељ
комит
ce9ae48663
1 измењених фајлова са 7 додато и 9 уклоњено
  1. 7 9
      .github/workflows/build-test-image.yml

+ 7 - 9
.github/workflows/build-test-image.yml

@@ -16,6 +16,7 @@ jobs:
         runs-on: ubuntu-latest
         outputs:
             ismaintainer: ${{ steps.teamAffiliation.outputs.isTeamMember }}
+            teams: ${{ steps.teamAffiliation.outputs.teams }}
         steps:
           - name: Check if actor is a maintainer
             uses: tspascoal/get-user-teams-membership@v2
@@ -24,15 +25,12 @@ jobs:
               GITHUB_TOKEN: ${{ secrets.ORG_READER_PAT }}
               username: ${{ github.actor }}
               team: opencost-maintainers
-  debug-actor-permissions:
-    runs-on: ubuntu-latest
-    needs: check_actor_permissions
-    if: ${{ always() }}
-    steps:
-      - name: Debug actor permissions
-        run: |
-          echo "Actor: ${{ github.actor }}"
-          echo "Is maintainer: ${{ needs.check_actor_permissions.outputs.ismaintainer }}"
+          - name: Debug actor permissions
+            run: |
+                echo "Actor: ${{ github.actor }}"
+                echo "teams: ${{ join(steps.teamAffiliation.outputs.teams, ',') }}"
+                echo "Is maintainer: ${{ needs.check_actor_permissions.outputs.ismaintainer }}"
+      
   build-and-publish-test-image:
     runs-on: ubuntu-latest
     needs: check_actor_permissions