Skip to content

Commit

Permalink
feat: block java release on playground repo (#207)
Browse files Browse the repository at this point in the history
Make sure playground repos never release a java project on accident
  • Loading branch information
DerTiedemann authored Nov 19, 2024
1 parent cb23302 commit 0075395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions actions/java-gradle-assess-code-quality/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ inputs:

runs:
using: "composite"
if: "!contains(github.repository, 'playground')"
steps:
- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions actions/java-gradle-publish-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ inputs:
default: "."
runs:
using: "composite"
if: "!contains(github.repository, 'playground')"
steps:
- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
3 changes: 2 additions & 1 deletion actions/java-gradle-publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ inputs:
default: "."
runs:
using: "composite"
if: "!contains(github.repository, 'playground')"
steps:
- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down Expand Up @@ -76,7 +77,7 @@ runs:
CI: "true"

- name: Publish releases to Nexus
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ startsWith(github.ref, 'refs/tags/')}}
run: |
export SIGNING_SECRET_KEY_RING_FILE="$(mktemp -d)/secring.gpg"
echo '${{ inputs.signing-secret-key-ring }}' | base64 -d > $SIGNING_SECRET_KEY_RING_FILE
Expand Down

0 comments on commit 0075395

Please sign in to comment.