-
Notifications
You must be signed in to change notification settings - Fork 228
38 lines (31 loc) · 1.16 KB
/
update-version.yaml
File metadata and controls
38 lines (31 loc) · 1.16 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: Update Version in Distributions and Prepare PR
on:
workflow_dispatch:
permissions:
contents: read
jobs:
update-version:
runs-on: ubuntu-24.04
permissions:
contents: write # required for pushing changes
pull-requests: write # required for creating PR
steps:
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_COLLECTOR_RELEASES_APP_ID }}
private-key: ${{ secrets.OTELBOT_COLLECTOR_RELEASES_PRIVATE_KEY }}
- name: Set up commit author name and email
id: committer
run: |
git config --global user.name "otelbot"
git config --global user.email "197425009+otelbot@users.noreply.github.com"
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
token: ${{ steps.otelbot-token.outputs.token }}
- name: Run bump-versions.sh
run: |
.github/workflows/scripts/bump-versions.sh --commit --pull-request
env:
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}