Fix passing of repository username and password into verify

See gh-40407
This commit is contained in:
Andy Wilkinson 2024-04-18 09:54:47 +01:00
parent e75c9312e0
commit 9a589ea243
2 changed files with 12 additions and 4 deletions

View File

@ -38,10 +38,11 @@ jobs:
needs: build-and-stage-release needs: build-and-stage-release
uses: ./.github/workflows/verify.yml uses: ./.github/workflows/verify.yml
with: with:
repository-username: ${{ secrets.ARTIFACTORY_USERNAME }}
repository-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
staging: true staging: true
version: ${{ needs.build-and-stage-release.outputs.version }} version: ${{ needs.build-and-stage-release.outputs.version }}
secrets:
repository-username: ${{ secrets.ARTIFACTORY_USERNAME }}
repository-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
sync-to-maven-central: sync-to-maven-central:
name: Sync to Maven Central name: Sync to Maven Central
needs: needs:

View File

@ -9,6 +9,13 @@ on:
required: false required: false
default: false default: false
type: boolean type: boolean
secrets:
repository-username:
required: false
type: string
repository-password:
required: false
type: string
jobs: jobs:
verify: verify:
name: Verify name: Verify
@ -46,8 +53,8 @@ jobs:
RVT_VERSION: ${{ inputs.version }} RVT_VERSION: ${{ inputs.version }}
RVT_RELEASE_TYPE: oss RVT_RELEASE_TYPE: oss
RVT_STAGING: ${{ inputs.staging }} RVT_STAGING: ${{ inputs.staging }}
RVT_OSS_REPOSITORY_USERNAME: ${{ inputs.repository-username }} RVT_OSS_REPOSITORY_USERNAME: ${{ secrets.repository-username }}
RVT_OSS_REPOSITORY_PASSWORD: ${{ inputs.repository-password }} RVT_OSS_REPOSITORY_PASSWORD: ${{ secrets.repository-password }}
run: ./gradlew spring-boot-release-verification-tests:test run: ./gradlew spring-boot-release-verification-tests:test
- name: Upload Build Reports on Failure - name: Upload Build Reports on Failure
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4