Skip to content

Commit

Permalink
Merge pull request #10 from podaac/feature/ci-test
Browse files Browse the repository at this point in the history
updated version commit condition
  • Loading branch information
cqbanh authored May 16, 2023
2 parents b52fd75 + 9bdcc83 commit 680bb9d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,16 @@ jobs:
- name: Commit Version Bump
# If building develop, a release branch, or main then we commit the version bump back to the repo
if: |
${{
((github.ref == 'refs/heads/develop') ||
(github.ref == 'refs/heads/main') ||
(startsWith(github.ref, 'refs/heads/release'))) &&
(github.event.inputs.allow_same_version != 'true')
}}
run: |
git config --global user.name 'hitide-ui bot'
git config --global user.email 'hitide-ui@noreply.github.com'
git commit -am "/version ${{ env.THE_VERSION }}"
git push
if ${{ github.event.inputs.allow_same_version != 'true' &&
(github.ref == 'refs/heads/develop' ||
github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/heads/release')) }}; then
git config --global user.name 'hitide-ui bot'
git config --global user.email 'hitide-ui@noreply.github.com'
git commit -am "/version ${{ env.THE_VERSION }}"
git push
fi
- name: Push Tag
if: |
Expand Down

0 comments on commit 680bb9d

Please sign in to comment.