-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.47 KB
/
updateDependencies.yml
File metadata and controls
40 lines (38 loc) · 1.47 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
39
40
name: Update Dependencies
on:
repository_dispatch:
types: UpdateDependencies
jobs:
update_dependencies:
name: Update Dependencies
runs-on: ubuntu-latest
steps:
- name: echo event
run: |
echo "${{ toJson(github.event.client_payload) }}"
- name: checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branchName }}
- name: update versions
if: github.event.client_payload.hasDependencyUpdates == true
run: |
find . -type f -name "*.gradle" -exec sed -i -e 's,"http://dl.bintray.com/spinnaker/spinnaker/","https://spinnaker-releases.bintray.com/jars",' {} \;
echo "${{ github.event.client_payload.newGradleProperties }}" > gradle.properties
- name: Create Pull Request
if: github.event.client_payload.hasDependencyUpdates == true
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.TOKEN }}
commit-message: "update dependencies to platform version ${{ github.event.client_payload.platformVersion }}"
branch: ${{ github.event.client_payload.platformVersion }}
branch-suffix: timestamp
title: "Update dependencies to platform version ${{ github.event.client_payload.platformVersion }}"
body: |
Event
```
${{ toJson(github.event.client_payload) }}
```
labels: |
updateDeps
autoMerge