Skip to content

Commit 9eb8429

Browse files
authored
[CI] add workflow to update community members (#5746)
Signed-off-by: svrnm <[email protected]>
1 parent 38f631e commit 9eb8429

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Auto-update community members page
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# At 03:41, every day
7+
- cron: 41 3 * * *
8+
9+
jobs:
10+
auto-update-versions:
11+
name: Auto-update community members page
12+
runs-on: ubuntu-24.04
13+
# Remove the if statement below when testing againt a fork
14+
if: github.repository == 'open-telemetry/opentelemetry.io'
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '22'
23+
24+
- name: Install dependencies
25+
working-directory: ./scripts/generate-community-data
26+
run: npm install
27+
28+
- name: Run script
29+
working-directory: ./scripts/generate-community-data
30+
run: node generate.js ../../data/community/members.yaml
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
33+
34+
- name: Create pull request
35+
uses: peter-evans/create-pull-request@v7
36+
with:
37+
add-paths: 'data/community/members.yaml'
38+
committer:
39+
opentelemetrybot
40+
41+
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
42+
branch: update-community-members
43+
title: Update community members
44+
body: |
45+
This pull request contains automated updates to files by the GitHub Action.

0 commit comments

Comments
 (0)