File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 11
11
Release :
12
12
runs-on : ubuntu-latest
13
13
permissions :
14
- contents : write
15
- pull-requests : write
14
+ contents : write
16
15
steps :
17
16
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18
17
with :
@@ -26,10 +25,19 @@ jobs:
26
25
sed -i -e 's/spec.version = ".*"/spec.version = "${{ inputs.new_version }}"/' OpenTelemetry-Swift-Protocol-Exporter-Http.podspec
27
26
sed -i -e 's/spec.version = ".*"/spec.version = "${{ inputs.new_version }}"/' OpenTelemetry-Swift-SdkResourceExtension.podspec
28
27
sed -i -e 's/spec.version = ".*"/spec.version = "${{ inputs.new_version }}"/' OpenTelemetry-Swift-PersistenceExporter.podspec
28
+
29
+ - uses : actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
30
+ id : otelbot-token
31
+ with :
32
+ app-id : ${{ vars.OTELBOT_APP_ID }}
33
+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
34
+
29
35
- name : Create Pull Request
30
36
uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
31
37
with :
32
- token : ${{ secrets.RELEASE_TOKEN }}
38
+ # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
39
+ token : ${{ steps.otelbot-token.outputs.token }}
40
+ branch-token : ${{ secrets.GITHUB_TOKEN }}
33
41
branch : release/${{inputs.new_version}}
34
42
commit-message : ' Release ${{inputs.new_version}}'
35
43
title : ' Release ${{inputs.new_version}}'
38
46
This PR is auto-generated by
39
47
[create-pull-request](https://github.com/peter-evans/create-pull-request).
40
48
base : main
41
-
42
-
Original file line number Diff line number Diff line change 13
13
default : true
14
14
type : boolean
15
15
16
+ permissions :
17
+ contents : read
18
+
16
19
jobs :
17
20
update-dependencies :
18
21
runs-on : ubuntu-latest
22
+ permissions :
23
+ contents : write
19
24
steps :
20
25
- name : Checkout code
21
26
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -40,11 +45,19 @@ jobs:
40
45
echo "has_changes=false" >> $GITHUB_OUTPUT
41
46
fi
42
47
48
+ - uses : actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
49
+ id : otelbot-token
50
+ with :
51
+ app-id : ${{ vars.OTELBOT_APP_ID }}
52
+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
53
+
43
54
- name : Create Pull Request
44
55
if : steps.changes.outputs.has_changes == 'true' && github.event.inputs.create_pr == 'true'
45
56
uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
46
57
with :
47
- token : ${{ secrets.RELEASE_TOKEN }}
58
+ # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
59
+ token : ${{ steps.otelbot-token.outputs.token }}
60
+ branch-token : ${{ secrets.GITHUB_TOKEN }}
48
61
commit-message : |
49
62
Update opentelemetry-swift-core dependencies to ${{ github.event.inputs.core_version }}
50
63
You can’t perform that action at this time.
0 commit comments