@@ -84,6 +84,29 @@ permissions:
8484jobs :
8585 automation :
8686 uses : ./.github/workflows/automation.yml
87+
88+ # Partial combination of simplified child jobs condition to avoid running jobs at all
89+ if : |
90+ github.event_name == 'workflow_dispatch'
91+ ||
92+ (
93+ github.event_name == 'pull_request' &&
94+ github.event.action == 'closed' &&
95+ github.event.pull_request.merged == true &&
96+ startsWith(github.event.pull_request.title, '[release] Prepare release ')
97+ )
98+ ||
99+ (
100+ github.event_name == 'issue_comment' &&
101+ github.event.issue.pull_request &&
102+ startsWith(github.event.issue.title, '[release] Prepare release ')
103+ )
104+ ||
105+ (
106+ startsWith(github.event.issue.title, '[release request] ') &&
107+ github.event.issue.pull_request == null
108+ )
109+
87110 secrets :
88111 OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY : ${{ secrets.OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY }}
89112
@@ -95,10 +118,10 @@ jobs:
95118 if : github.event_name == 'workflow_dispatch' && needs.automation.outputs.enabled
96119
97120 steps :
98- - uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
121+ - uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
99122 id : otelbot-token
100123 with :
101- app -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
124+ client -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
102125 private-key : ${{ secrets.OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY }}
103126 permission-contents : write
104127 permission-pull-requests : write
@@ -145,10 +168,10 @@ jobs:
145168 needs.automation.outputs.enabled
146169
147170 steps :
148- - uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
171+ - uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
149172 id : otelbot-token
150173 with :
151- app -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
174+ client -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
152175 private-key : ${{ secrets.OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY }}
153176 permission-contents : read
154177 permission-pull-requests : write
@@ -188,10 +211,10 @@ jobs:
188211 needs.automation.outputs.enabled
189212
190213 steps :
191- - uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
214+ - uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
192215 id : otelbot-token
193216 with :
194- app -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
217+ client -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
195218 private-key : ${{ secrets.OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY }}
196219 permission-contents : write
197220 permission-pull-requests : write
@@ -238,10 +261,10 @@ jobs:
238261 needs.automation.outputs.enabled
239262
240263 steps :
241- - uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
264+ - uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
242265 id : otelbot-token
243266 with :
244- app -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
267+ client -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
245268 private-key : ${{ secrets.OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY }}
246269 permission-contents : write
247270 permission-pull-requests : write
@@ -293,10 +316,10 @@ jobs:
293316 )
294317
295318 steps :
296- - uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
319+ - uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
297320 id : otelbot-token
298321 with :
299- app -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
322+ client -id : ${{ vars.OTELBOT_DOTNET_CONTRIB_APP_ID }}
300323 private-key : ${{ secrets.OTELBOT_DOTNET_CONTRIB_PRIVATE_KEY }}
301324 permission-contents : write
302325 permission-issues : write
0 commit comments