-
Notifications
You must be signed in to change notification settings - Fork 1.8k
38 lines (31 loc) · 1.05 KB
/
auto-update-versions.yml
File metadata and controls
38 lines (31 loc) · 1.05 KB
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
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 197425009+otelbot@users.noreply.github.com
- 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 }}
- 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 }}