Skip to content

Commit d24a6d4

Browse files
committed
Adding release_notes, git_release_notes, include_git_commit_id and modifying notify option
1 parent cc9d244 commit d24a6d4

4 files changed

Lines changed: 43 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout
9-
uses: actions/checkout@v1
9+
uses: actions/checkout@v3
1010
- name: Get sample .apk for test purposes
1111
run: wget https://github.com/testappio/cli/raw/main/sample-apps/sample-app.apk
1212
- name: Upload .apk artifact to TestApp.io app distribution
@@ -15,13 +15,16 @@ jobs:
1515
api_token: ${{secrets.TESTAPPIO_API_TOKEN}}
1616
app_id: ${{secrets.TESTAPPIO_APP_ID}}
1717
file: sample-app.apk
18-
notify: "no"
18+
git_release_notes: true
19+
include_git_commit_id: true
20+
release_notes: ""
21+
notify: true
1922

2023
macos:
2124
runs-on: macos-latest
2225
steps:
2326
- name: Checkout
24-
uses: actions/checkout@v1
27+
uses: actions/checkout@v3
2528
- name: Get sample .ipa for test purposes
2629
run: wget https://github.com/testappio/cli/raw/main/sample-apps/sample-app.ipa
2730
- name: Upload .ipa artifact to TestApp.io app distribution
@@ -30,4 +33,7 @@ jobs:
3033
api_token: ${{secrets.TESTAPPIO_API_TOKEN}}
3134
app_id: ${{secrets.TESTAPPIO_APP_ID}}
3235
file: sample-app.ipa
33-
notify: "no"
36+
git_release_notes: false
37+
include_git_commit_id: false
38+
release_notes: "my release notes here..."
39+
notify: true

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# [<img src="https://assets.testapp.io/logo/blue.svg" alt="TestApp.io"/>](https://testapp.io/) Github Action
22

3+
### Current version: v3.0-BETA
4+
35
> This is in BETA mode. Your feedback is highly appreciated!
46
57
[![Workflow to upload apk and ipa to TestApp.io app distribution](https://github.com/testappio/github-action/actions/workflows/main.yml/badge.svg)](https://github.com/testappio/github-action/actions/workflows/main.yml)
@@ -14,7 +16,13 @@ This action uploads artifacts (.apk or .ipa) to TestApp.io and notifying your te
1416
1517
> file: artifact to upload (.apk or .ipa)
1618
17-
> notify: **yes** or **no** - to notify your team members in TestApp.io via push notification
19+
> release_notes: manually add the release notes to be displayed for the testers
20+
21+
> git_release_notes: collect release notes from the the git commit message to be displayed for the testers
22+
23+
> include_git_commit_id: include the last git commit ID in the release notes (works with both release notes option)
24+
25+
> notify: notify your team members via a push notification in TestApp.io mobile app
1826
1927
## Requirements
2028

@@ -49,12 +57,15 @@ jobs:
4957
5058
5159
- name: Upload artifact to TestApp.io
52-
uses: testappio/github-action@v2
60+
uses: testappio/github-action@v3
5361
with:
5462
api_token: ${{secrets.TESTAPPIO_API_TOKEN}}
5563
app_id: ${{secrets.TESTAPPIO_APP_ID}}
5664
file: app/build/outputs/apk/release/app-release-unsigned.apk
57-
notify: "yes"
65+
release_notes: ""
66+
git_release_notes: true
67+
include_git_commit_id: true
68+
notify: true
5869
```
5970

6071
## Sample usage for iOS
@@ -90,12 +101,15 @@ jobs:
90101
team-id: ${{ secrets.TEAM_ID }}
91102
92103
- name: Upload artifact to TestApp.io
93-
uses: testappio/github-action@v2
104+
uses: testappio/github-action@v3
94105
with:
95106
api_token: ${{ secrets.TESTAPPIO_API_TOKEN }}
96107
app_id: ${{ secrets.TESTAPPIO_APP_ID }}
97108
file: artifacts/output.ipa
98-
notify: "yes"
109+
release_notes: "Testing manual release notes..."
110+
git_release_notes: false
111+
include_git_commit_id: false
112+
notify: true
99113
```
100114

101115
---

action.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ inputs:
1111
file:
1212
description: "Artifact to upload (.apk or .ipa)"
1313
required: true
14+
release_notes:
15+
description: "Release notes will be visible for testers"
16+
required: false
17+
git_release_notes:
18+
description: "Collect the release notes from the last git commit message"
19+
required: false
20+
include_git_commit_id:
21+
description: "Include the last git commit ID with the release notes"
22+
required: false
1423
notify:
1524
description: "Send notificaitons to team members about this release"
1625
required: false
@@ -20,7 +29,7 @@ branding:
2029
runs:
2130
using: "composite"
2231
steps:
23-
- run: curl -Ls https://github.com/testappio/cli/releases/latest/download/install | bash
32+
- run: curl -Ls https://github.com/testappio/cli/releases/download/v1.0.2/install | bash
2433
shell: bash
2534
- run: chmod +x ${{ github.action_path }}/entrypoint.sh
2635
shell: bash
@@ -29,5 +38,8 @@ runs:
2938
INPUT_API_TOKEN: ${{ inputs.api_token }}
3039
INPUT_APP_ID: ${{ inputs.app_id }}
3140
INPUT_FILE: ${{ inputs.file }}
41+
INPUT_RELEASE_NOTES: ${{ inputs.release_notes }}
42+
INPUT_GIT_RELEASE_NOTES: ${{ inputs.git_release_notes }}
43+
INPUT_INCLUDE_GIT_COMMIT_ID: ${{ inputs.include_git_commit_id }}
3244
INPUT_NOTIFY: ${{ inputs.notify }}
3345
shell: bash

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ if [ "$FILE_EXT" = "ipa" ]; then
1616
IPA_PATH=$FILE
1717
fi
1818

19-
ta-cli publish --api_token="$INPUT_API_TOKEN" --app_id="$INPUT_APP_ID" --release="$RELEASE" --apk="$APK_PATH" --ipa="$IPA_PATH" --notify="$INPUT_NOTIFY"
19+
ta-cli publish --api_token="$INPUT_API_TOKEN" --app_id="$INPUT_APP_ID" --release="$RELEASE" --apk="$APK_PATH" --ipa="$IPA_PATH" --release_notes="$INPUT_RELEASE_NOTES" --git_release_notes=$INPUT_GIT_RELEASE_NOTES --git_commit_id=$INPUT_INCLUDE_GIT_COMMIT_ID --notify=$INPUT_NOTIFY --source="Github Action"

0 commit comments

Comments
 (0)