Skip to content

Commit

Permalink
update action checkout test
Browse files Browse the repository at this point in the history
Signed-off-by: Woojoong Kim <[email protected]>
  • Loading branch information
woojoong88 committed Jun 27, 2024
1 parent ad481a7 commit 920aced
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,27 @@ jobs:
runs-on: ubuntu-latest
outputs:
valid_version: ${{ steps.version-check-step.outputs.valid_version }}
dev_version: ${{ steps.version-check-step.outputs.dev_version }}
target_version: ${{ steps.version-check-step.outputs.target_version }}
dev_version: ${{ steps.dev-version-check-step.outputs.dev_version }}
target_version: ${{ steps.get-target-version-step.outputs.target_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: check version
id: version-check-step
shell: bash
run: |
make check-version; if [[ $? == 0 ]]; then echo "valid_version=true" >> $GITHUB_OUTPUT; else echo "valid_version=false" >> $GITHUB_OUTPUT; fi
bash -c ./build/bin/version_check.sh is_dev; if [[ $? == 0 ]]; then echo "dev_version=true" >> $GITHUB_OUTPUT; else echo "dev_version=false" >> $GITHUB_OUTPUT; fi
- name: check dev version
id: dev-version-check-step
run: |
bash ./build/bin/version_check.sh is_dev
if [[ $? == 0 ]]; then echo "dev_version=true" >> $GITHUB_OUTPUT; else echo "dev_version=false" >> $GITHUB_OUTPUT; fi
- name: get target version
id: get-target-version-step
run: |
echo "target_version=$(cat VERSION)" >> $GITHUB_OUTPUT
tag_versions:
Expand Down
1 change: 1 addition & 0 deletions build/bin/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ case $INPUT in

*)
echo -n "unknown input"
exit 2
;;

esac

0 comments on commit 920aced

Please sign in to comment.