Skip to content

Auto-update registry versions #645

Auto-update registry versions

Auto-update registry versions #645

name: Auto-update registry versions
on:
workflow_dispatch:
schedule:
# At 04:31, every day
- cron: 31 4 * * *
# Declare default permissions as read only.
permissions: read-all
jobs:
auto-update-versions:
name: Auto-update registry versions
runs-on: ubuntu-latest
permissions:
contents: write
# Remove the if statement below when testing against a fork
if: github.repository == 'open-telemetry/opentelemetry.io'
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Use CLA approved github bot
run: |
git config user.name otelbot
git config user.email [email protected]
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
- name: Auto-update
run: |
.github/scripts/update-registry-versions.sh
env:
# change to ${{ secrets.GITHUB_TOKEN }} and comment out the step above when testing against a fork
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}