File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,14 @@ jobs:
49
49
https://oss.sonatype.org/service/local/staging/profiles/$STAGING_PROFILE_ID/start
50
50
export STAGING_REPOSITORY_ID=`awk -F'[<>]' '/stagedRepositoryId/{print $3}' response.xml`
51
51
echo "Staging repository created: $STAGING_REPOSITORY_ID"
52
+ echo "::set-output name=stagingRepositoryId::$STAGING_REPOSITORY_ID"
52
53
- name : Checkout repository
53
54
uses : actions/checkout@v1
54
55
- name : Extract distribution repository URL
55
56
id : repository
56
57
run : |
57
58
if [[ "${{ env.DEPLOY_RELEASE }}" = "true" ]]; then
58
- export REPOSITORY_URL=`mvn exec:exec -q -N -Dexec.executable='echo' -Dexec.args="\\${project.distributionManagement.repository.url}" -DstagingRepositoryId=$STAGING_REPOSITORY_ID `
59
+ export REPOSITORY_URL=`mvn exec:exec -q -N -Dexec.executable='echo' -Dexec.args="\\${project.distributionManagement.repository.url}" -DstagingRepositoryId=${{ steps.staging.outputs.stagingRepositoryId }} `
59
60
else
60
61
export REPOSITORY_URL=`mvn exec:exec -q -N -Dexec.executable='echo' -Dexec.args="\\${project.distributionManagement.snapshotRepository.url}"`
61
62
fi
You can’t perform that action at this time.
0 commit comments