mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 18:38:17 +00:00
feat(ci): restrict workflow runs for publish jars (#13776)
This commit is contained in:
parent
65a8206605
commit
bf833c0fc7
9
.github/workflows/publish-datahub-jars.yml
vendored
9
.github/workflows/publish-datahub-jars.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user