Skip to content

Commit

Permalink
Merge pull request #3 from ingrammicro-xvantage/tweak-workflow
Browse files Browse the repository at this point in the history
Modified workflow so it will not give error when there is nothing to …
  • Loading branch information
im-deviprakash committed Jan 23, 2024
2 parents d554bfe + 28d1651 commit ba7eb40
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
git config --global user.email ${{secrets.ADMIN_EMAIL}}
git config --global user.name ${{secrets.ORG_NAME}}
git add .
git commit -m "Bump version to ${{ github.event.inputs.version }}"
git push https://${{secrets.WORKFLOW_TOKEN}}@github.com/ingrammicro-xvantage/xi-sdk-resellers-java main
if git diff --exit-code; then
echo "No changes to commit."
else
git add .
git commit -m "Bump version to ${{ github.event.inputs.version }}"
git push https://${{secrets.WORKFLOW_TOKEN}}@github.com/ingrammicro-xvantage/xi-sdk-resellers-java main
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml
Expand Down

0 comments on commit ba7eb40

Please sign in to comment.