Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 24, 2024
1 parent e695a48 commit f3969cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions maven/await-artifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ NOTE: this action does not timeout, hence you need to configure your GitHub work
| `artifact-id` | Maven artifact-ID of the artifact | `true` | ` ` |
| `group-id` | Maven group-ID of the artifact | `true` | ` ` |
| `version` | Version of the artifact to wait for | `true` | ` ` |
| `wait-for-sonatype-central` | Whether to wait for the artifact to be available in the sonatype central repository. | `false` | `true` |
| `wait-for-maven-central` | Whether to wait for the artifact to be available in the maven central repository. | `false` | `false` |
| `sonatype-central` | Whether to wait for the artifact to be available in the sonatype central repository. | `false` | `true` |
| `maven-central` | Whether to wait for the artifact to be available in the maven central repository. | `false` | `false` |
<!--/inputs-->


Expand Down
8 changes: 4 additions & 4 deletions maven/await-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ inputs:
version:
description: 'Version of the artifact to wait for'
required: true
wait-for-sonatype-central:
sonatype-central:
description: 'Whether to wait for the artifact to be available in the sonatype central repository.'
default: true
required: false
wait-for-maven-central:
maven-central:
description: 'Whether to wait for the artifact to be available in the maven central repository.'
default: false
required: false
runs:
using: "composite"
steps:
- name: Wait for artifact to be available on proxy sonatype maven central
if: ${{ inputs.wait-for-sonatype-central == 'true' }}
if: ${{ inputs.sonatype-central == 'true' }}
shell: bash
run: |
TIME=30
Expand All @@ -41,7 +41,7 @@ runs:
VERSION: ${{ inputs.version }}

- name: Wait for artifact to be available on maven central
if: ${{ inputs.wait-for-maven-central == 'true' }}
if: ${{ inputs.maven-central == 'true' }}
shell: bash
run: |
TIME=30
Expand Down

0 comments on commit f3969cb

Please sign in to comment.