Skip to content

Commit

Permalink
move verification of build_type to versioning in build
Browse files Browse the repository at this point in the history
  • Loading branch information
marfavi committed Dec 8, 2023
1 parent 9a0e16c commit 9ed5424
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/actions/verify_build_type/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ runs:
echo "Error: build_type must be 'development' or 'production'"
exit 1
fi
echo "Build type: ${{ inputs.build_type }}"
shell: bash
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Validate build_type
uses: ./.github/actions/verify_build_type
with:
build_type: ${{ inputs.build_type }}

- name: Determine build version
id: build_version
run: |
Expand All @@ -53,11 +61,6 @@ jobs:
runs-on: macos-latest
needs: [version]
steps:
- name: Validate build_type
uses: ./.github/actions/verify_build_type
with:
build_type: ${{ inputs.build_type }}

- name: Checkout code
uses: actions/[email protected]

Expand Down

0 comments on commit 9ed5424

Please sign in to comment.