handling case that not have version name label #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |