forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.54 KB
/
version-increment.yml
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
45
46
47
48
49
50
51
---
name: Increment Version
on:
push:
paths:
- build.gradle
branches: main
workflow_dispatch:
jobs:
version-increment:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: version-increment
steps:
- name: Check out OpenSearch repo
uses: actions/checkout@v3
- name: Run gradle task
id: gradle
run: |
./gradlew updateVersion
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ steps.github_app_token.outputs.token }}
base: '5.x'
committer: opensearch-ci-bot <[email protected]>
author: opensearch-ci-bot <[email protected]>
commit-message: |
Increment jenkins library version
Signed-off-by: opensearch-ci-bot <[email protected]>
delete-branch: true
branch: create-pull-request
title: '[AUTO] Increment jenkins library version'
body: |
- Increment jenkins library version.
- name: Check outputs
run: |-
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"