Skip to content

Commit

Permalink
Uncomment branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrassia committed Oct 16, 2024
1 parent dbb4417 commit 8a28fa1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
- name: Checkout repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

# - name: Branch check
# if: ${{ inputs.release_type != 'Dry Run' }}
# run: |
# if [[ "$GITHUB_REF" != "refs/heads/main" ]]; then
# echo "==================================="
# echo "[!] Can only release from the 'main' branch"
# echo "==================================="
# exit 1
# fi
- name: Branch check
if: ${{ inputs.release_type != 'Dry Run' }}
run: |
if [[ "$GITHUB_REF" != "refs/heads/main" ]]; then
echo "==================================="
echo "[!] Can only release from the 'main' branch"
echo "==================================="
exit 1
fi
- name: Version output
id: version-output
Expand Down

0 comments on commit 8a28fa1

Please sign in to comment.