Auto-update community members page #69
This file contains hidden or 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
| name: Auto-update community members page | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # At 03:41, every day | |
| - cron: 41 3 * * * | |
| permissions: | |
| contents: read | |
| jobs: | |
| auto-update-versions: | |
| name: Auto-update community members page | |
| runs-on: ubuntu-latest | |
| # Remove the if statement below when testing against a fork | |
| if: github.repository == 'open-telemetry/opentelemetry.io' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| working-directory: ./scripts/generate-community-data | |
| run: npm install | |
| - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | |
| id: otelbot-token | |
| with: | |
| # the higher privileged docs token is needed to push commits to an existing PR | |
| app-id: ${{ vars.OTELBOT_DOCS_APP_ID }} | |
| private-key: ${{ secrets.OTELBOT_DOCS_PRIVATE_KEY }} | |
| - name: Run script | |
| working-directory: ./scripts/generate-community-data | |
| run: node generate.js ../../data/community/members.yaml | |
| env: | |
| GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| - name: Use CLA approved github bot | |
| run: | | |
| git config user.name otelbot | |
| git config user.email 197425009+otelbot@users.noreply.github.com | |
| - name: Fix refcache | |
| run: | | |
| npm install --omit=optional | |
| npm run fix:refcache | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| add-paths: | | |
| data/community/members.yaml | |
| static/refcache.json | |
| author: otelbot <197425009+otelbot@users.noreply.github.com> | |
| committer: otelbot <197425009+otelbot@users.noreply.github.com> | |
| token: ${{ steps.otelbot-token.outputs.token }} | |
| branch: otelbot/update-community-members | |
| title: Update community members | |
| body: | | |
| This pull request contains automated updates to files by the GitHub Action. |