-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 1.14 KB
/
test_action.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
name: Test Action
on:
pull_request:
branches: [ "main" ]
jobs:
get-num-square:
runs-on: ubuntu-latest
name: Multi version control
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]
- name: Execute action
id: bump_version
uses: ./
with:
version_file_path: "./version.gradle"
pr_labels: ${{ steps.pr-labels.outputs.labels }}
version_name_dev: "version_name_test_dev"
version_name_stg: "version_name_test_stg"
version_name_prod: "version_name_test_prod"
version_code_dev: "version_code_test_dev"
version_code_stg: "version_code_test_stg"
version_code_prod: "version_code_test_prod"
- name: Print current version & next version
run: |
echo ${{ steps.bump_version.outputs.current_version_name }}
echo ${{ steps.bump_version.outputs.current_version_code }}
echo ${{ steps.bump_version.outputs.next_version_name }}
echo ${{ steps.bump_version.outputs.next_version_code }}