Auto-update versions #2047
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 versions | |
on: | |
workflow_dispatch: | |
schedule: | |
# hourly at minute 10 | |
- cron: 10 * * * * | |
permissions: read-all | |
jobs: | |
auto-update-versions: | |
name: Auto-update versions | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: github.repository == 'open-telemetry/opentelemetry.io' | |
env: | |
DEPTH: --depth 999 # submodule clone depth | |
steps: | |
- 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@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 | |
id: otelbot-token | |
with: | |
app-id: ${{ vars.OTELBOT_APP_ID }} | |
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }} | |
- run: ./scripts/auto-update/all-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 }} |