Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish snapshot and test results are skipped when workflow is run by dependabot #99

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/compaund-java-sonatype-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.sonatypeSigningKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.sonatypeSigningPassword }}
- name: Dev Build with Gradle
if: ${{ !inputs.closeAndRelease }}
if: !inputs.closeAndRelease && github.actor != 'dependabot[bot]'
Nikita-Smirnov-Exactpro marked this conversation as resolved.
Show resolved Hide resolved
run: ./gradlew -p ${{ inputs.projectPath }} --info clean build -Prelease_version=${{ format('{0}-SNAPSHOT', inputs.version) }} publish
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.sonatypeUsername }}
Expand All @@ -78,7 +78,7 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.sonatypeSigningPassword }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
if: always() && github.actor != 'dependabot[bot]'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: We can request permissions for the job to allow comments on PR. You can read more here

with:
files: |
${{ inputs.projectPath }}/build/test-results/**/*.xml
Expand Down