Skip to content

Commit

Permalink
Do not run upload-artifact on master
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Feb 16, 2024
1 parent f01eb0e commit 8c9cf0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ jobs:
debug: true

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: file-diff-test-1-output
path: ${{ steps.dependency-diff.outputs.file-diff }}
if-no-files-found: error

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: file-diff-test-1-dependencies-previous
path: ${{ steps.dependency-diff.outputs.dependencies-previous }}
if-no-files-found: error

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: file-diff-test-1-dependencies-current
path: ${{ steps.dependency-diff.outputs.dependencies-current }}
Expand Down Expand Up @@ -120,6 +123,7 @@ jobs:
project: ""

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: file-diff-test-2
path: ${{ steps.dependency-diff.outputs.file-diff }}
Expand Down Expand Up @@ -182,7 +186,7 @@ jobs:
additional-gradle-arguments: "--scan"

- uses: actions/upload-artifact@v4
if: matrix.os != 'windows-latest' # https://github.com/actions/upload-artifact/issues/337
if: github.event_name == 'pull_request' && matrix.os != 'windows-latest' # https://github.com/actions/upload-artifact/issues/337
with:
name: file-diff-test-on-${{ matrix.os }}
path: ${{ steps.dependency-diff.outputs.file-diff }}
Expand Down

0 comments on commit 8c9cf0f

Please sign in to comment.