diff --git a/.github/workflows/sync-working-groups.yml b/.github/workflows/sync-working-groups.yml index e617844d5a2..484ba375a3a 100644 --- a/.github/workflows/sync-working-groups.yml +++ b/.github/workflows/sync-working-groups.yml @@ -8,15 +8,11 @@ on: - cron: '0 * * * *' workflow_dispatch: -permissions: read-all - jobs: sync: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ref: main - name: Install JDK ${{ env.JVM_VERSION }} uses: actions/setup-java@v4 @@ -31,7 +27,7 @@ jobs: jbangargs: --verbose -Dworking-groups.output=_data/wg.yaml env: JBANG_REPO: /root/.jbang/repository - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SYNC_WORKING_GROUP_TOKEN }} - name: Configure Git author run: | diff --git a/working-groups/main.java b/working-groups/main.java index 91a02c44390..381720199cd 100644 --- a/working-groups/main.java +++ b/working-groups/main.java @@ -118,6 +118,10 @@ public List getAllProjectsForOrganization(String org) throws ExecutionExc } """, variables); + + System.out.println("Response: " + response); + System.out.println("Errors: " + response.getErrors()); + System.out.println("Data:\n" + response.getData()); JsonArray array = response.getData().getJsonObject("organization").getJsonObject("projectsV2") .getJsonArray("nodes"); for (JsonValue value : array) {