-
Notifications
You must be signed in to change notification settings - Fork 42
46 lines (43 loc) · 1.47 KB
/
release.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
name: Release
on:
release:
types:
- published
jobs:
container:
runs-on: ubuntu-latest
container:
image: ballerina/ballerina:2201.8.0
options: --user root
steps:
- name: Install Git
run: apk --no-cache add git
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build with Gradle
env:
BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
run: |
./gradlew build -Prelease=true -Premote=true
- name: Create Pull Request For Updating Release Files
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.BALLERINA_BOT_TOKEN }}
commit-message: Update file hashes
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: release/hash-update
base: main
title: Update file hashes
body: |
Update file hashes
- openapi.properties
Update Ballerina.toml version of the released connectors
draft: false
- name: PR details
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"