forked from gchq/Gaffer
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.39 KB
/
update-koryphe-version.yaml
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
41
42
43
44
name: Update Korpyhe Version
on:
workflow_dispatch:
inputs:
version:
description: 'Korpyhe Version'
required: true
jobs:
update-koryphe-version:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
VERSION_UPDATE_BRANCH: update-koryphe-version-${{ github.event.inputs.version }}
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Set up Github credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
- name: Update Korpyhe Version
run: ./cd/updateKorypheVersion.sh ${{ github.event.inputs.version }}
- name: Submit PR
if: ${{ success() }}
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ env.VERSION_UPDATE_BRANCH }}
destination_branch: ${{ env.SOURCE_BRANCH }}
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
pr_title: "Update Koryphe version to ${{ github.event.inputs.version }}"
pr_body: "Automated GitHub Actions PR to upgrade to version ${{ github.event.inputs.version }} of Koryphe"