Skip to content

Explicitly declare needs #317

Explicitly declare needs

Explicitly declare needs #317

Workflow file for this run

name: build
on: [push, pull_request]
env:
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
jobs:
create-staging-repo:
env:
STAGING: true
name: Create staging repository
runs-on: ubuntu-latest
outputs:
staging-repo: ${{ steps.create-repo.outputs.repo }}
steps:
- uses: actions/checkout@v2
- id: create-repo
run: "mvn -B --settings mvnsettings.xml nexus-staging:rc-open -DserverId=ossrh -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=72c1cc10566951 -DopenedRepositoryMessageFormat='\nrepo=%s' | grep 'repo=' >> $GITHUB_OUTPUT"
echo-repo:
needs: create-staging-repo
env:
STAGING: ${{ needs.create-staging-repo.outputs.staging-repo }}
name: Echo
runs-on: ubuntu-latest
steps:
- run: "echo $STAGING"