-
Notifications
You must be signed in to change notification settings - Fork 1.2k
45 lines (39 loc) · 1.37 KB
/
auto-update-community-members.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
env:
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
add-paths: 'data/community/members.yaml'
committer:
opentelemetrybot
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.