Skip to content

Commit

Permalink
Don't upload duplicate file names.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Jan 18, 2024
1 parent 944154c commit 3f09439
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ on:
type: boolean
default: false

upload-skip:
description: 'Skip uploading the artifacts.'
required: false
type: boolean
default: false

jobs:

Expand Down Expand Up @@ -328,13 +333,15 @@ jobs:
# upload report as artifact
- name: Archive unit tests report
if: inputs.upload-skip == false
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
with:
name: report
path: ${{ inputs.working-directory }}/report.json

# upload coverage as artifact
- name: Archive code coverage results
if: inputs.upload-skip == false
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
with:
name: coverage
Expand Down Expand Up @@ -411,6 +418,7 @@ jobs:
fi
- name: Archive code style results
if: inputs.upload-skip == false
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
with:
name: fmt
Expand Down Expand Up @@ -539,7 +547,7 @@ jobs:
licensed status
- name: Archive license results
if: always()
if: always() && inputs.upload-skip == false
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
with:
name: licensing
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
release-type: program
release-docker: true
release-docker-file: ./cmd/foo/Dockerfile
upload-skip: true
secrets: inherit

command-tag:
Expand All @@ -60,6 +61,7 @@ jobs:
release-docker-latest: true
release-docker-major: true
release-docker-minor: true
upload-skip: true
secrets: inherit


Expand All @@ -75,6 +77,7 @@ jobs:
release-docker: true
release-docker-extras: |
main.go
upload-skip: true
secrets: inherit

program-tag:
Expand All @@ -99,6 +102,7 @@ jobs:
release-docker-extras: |
main.go
go.mod
upload-skip: true
secrets: inherit


Expand All @@ -112,6 +116,7 @@ jobs:
working-directory: library
release-type: library
release-project-name: library
upload-skip: true
secrets: inherit

library-tag:
Expand All @@ -129,6 +134,7 @@ jobs:
working-directory: library
release-type: library
release-project-name: library
upload-skip: true
secrets: inherit


Expand All @@ -141,6 +147,7 @@ jobs:
release-type: program
release-project-name: program
release-skip-publish: --skip-publish
upload-skip: true
secrets: inherit

slow-things-library:
Expand All @@ -152,6 +159,7 @@ jobs:
release-type: library
release-project-name: library
release-skip-publish: --skip-publish
upload-skip: true
secrets: inherit

tag:
Expand Down

0 comments on commit 3f09439

Please sign in to comment.