Skip to content

Commit

Permalink
Merge pull request #13 from telekom/feature/useBranchNameSnapshots
Browse files Browse the repository at this point in the history
feat: Use branch name and prevent pull_request events from being used…
  • Loading branch information
chrisingenhaag authored Feb 27, 2024
2 parents 9fc8061 + 0722c60 commit 0907058
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
name: Gradle Build and Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
Expand Down Expand Up @@ -44,7 +41,7 @@ jobs:
min-coverage-changed-files: 80
if: github.event_name == 'pull_request'
- name: Execute Gradle snapshot publish
if: ${{ !contains(github.ref, 'main') && !contains(github.ref, 'master') && !contains(github.ref, 'develop') }}
if: ${{ github.event_name != 'pull_request' && !contains(github.ref, 'main') && !contains(github.ref, 'master') && !contains(github.ref, 'develop') }}
env:
PUBLISH_USERNAME: ${{ secrets.PUBLISH_USERNAME }}
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
Expand Down

0 comments on commit 0907058

Please sign in to comment.