From 42f62191ca87d4a5becbce653b0012cebf3882c2 Mon Sep 17 00:00:00 2001 From: svrnm Date: Mon, 9 Dec 2024 10:52:47 +0100 Subject: [PATCH 1/4] add workflow to update community members Signed-off-by: svrnm --- .../auto-update-community-members.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/auto-update-community-members.yml diff --git a/.github/workflows/auto-update-community-members.yml b/.github/workflows/auto-update-community-members.yml new file mode 100644 index 000000000000..66105c451666 --- /dev/null +++ b/.github/workflows/auto-update-community-members.yml @@ -0,0 +1,41 @@ +name: Auto-update community members page + +on: + workflow_dispatch: + schedule: + # At 03:41, every day + - cron: 41 3 * * * + +jobs: + auto-update-versions: + name: Auto-update community members page + runs-on: ubuntu-24.04 + # Remove the if statement below when testing againt a fork + # if: github.repository == 'open-telemetry/opentelemetry.io' + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '22' + + - name: Install dependencies + working-directory: ./scripts/generate-community-data + run: npm install + + - name: Run script + working-directory: ./scripts/generate-community-data + run: node generate.js ../../data/community/members.yaml + + - name: Create pull request + uses: peter-evans/create-pull-request@v7 + with: + add-paths: 'data/community/members.yaml' + committer: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> + token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} + branch: update-community-members + title: Update community members + body: | + This pull request contains automated updates to files by the GitHub Action. \ No newline at end of file From 3b74bcdddae564c3c8039702f9dadd3bb9633add Mon Sep 17 00:00:00 2001 From: svrnm Date: Mon, 9 Dec 2024 15:43:08 +0100 Subject: [PATCH 2/4] fix permission issues Signed-off-by: svrnm --- .github/workflows/auto-update-community-members.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-update-community-members.yml b/.github/workflows/auto-update-community-members.yml index 66105c451666..f1c9acb7acba 100644 --- a/.github/workflows/auto-update-community-members.yml +++ b/.github/workflows/auto-update-community-members.yml @@ -28,6 +28,8 @@ jobs: - name: Run script working-directory: ./scripts/generate-community-data run: node generate.js ../../data/community/members.yaml + env: + GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} - name: Create pull request uses: peter-evans/create-pull-request@v7 @@ -38,4 +40,4 @@ jobs: branch: update-community-members title: Update community members body: | - This pull request contains automated updates to files by the GitHub Action. \ No newline at end of file + This pull request contains automated updates to files by the GitHub Action. From 0b2e6a1b360b34e561281c05c76290343f4db9e8 Mon Sep 17 00:00:00 2001 From: svrnm Date: Mon, 9 Dec 2024 15:50:55 +0100 Subject: [PATCH 3/4] fix format Signed-off-by: svrnm --- .github/workflows/auto-update-community-members.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-update-community-members.yml b/.github/workflows/auto-update-community-members.yml index f1c9acb7acba..7f9a156b4837 100644 --- a/.github/workflows/auto-update-community-members.yml +++ b/.github/workflows/auto-update-community-members.yml @@ -35,7 +35,9 @@ jobs: uses: peter-evans/create-pull-request@v7 with: add-paths: 'data/community/members.yaml' - committer: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> + committer: + opentelemetrybot + <107717825+opentelemetrybot@users.noreply.github.com> token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} branch: update-community-members title: Update community members From bce389e5a68ca796ea7c5dad6206c6efe1d6f6a1 Mon Sep 17 00:00:00 2001 From: Severin Neumann Date: Tue, 10 Dec 2024 09:28:01 +0100 Subject: [PATCH 4/4] Update .github/workflows/auto-update-community-members.yml --- .github/workflows/auto-update-community-members.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-update-community-members.yml b/.github/workflows/auto-update-community-members.yml index 7f9a156b4837..402545a20011 100644 --- a/.github/workflows/auto-update-community-members.yml +++ b/.github/workflows/auto-update-community-members.yml @@ -11,7 +11,7 @@ jobs: name: Auto-update community members page runs-on: ubuntu-24.04 # Remove the if statement below when testing againt a fork - # if: github.repository == 'open-telemetry/opentelemetry.io' + if: github.repository == 'open-telemetry/opentelemetry.io' steps: - name: Checkout uses: actions/checkout@v4