feat(ci): restrict workflow runs for publish jars (#13776)

This commit is contained in:
david-leifker 2025-06-13 15:23:51 -05:00 committed by GitHub
parent 65a8206605
commit bf833c0fc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,8 +27,13 @@ jobs:
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
run: |
echo "Enable publish: ${{ env.SIGNING_KEY != '' }}"
echo "publish=${{ env.SIGNING_KEY != '' }}" >> $GITHUB_OUTPUT
if [[ "${{ github.repository }}" == "acryldata/datahub" ]]; then
echo "Enable publish for main repository: ${{ env.SIGNING_KEY != '' }}"
echo "publish=${{ env.SIGNING_KEY != '' }}" >> $GITHUB_OUTPUT
else
echo "Skipping publish for repository: ${{ github.repository }}"
echo "publish=false" >> $GITHUB_OUTPUT
fi
setup:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest