-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] add workflow to update community members (#5746)
Signed-off-by: svrnm <[email protected]>
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
<[email protected]> | ||
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. |