File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515jobs :
1616 mint-token :
1717 runs-on : ubuntu-latest
18- outputs :
19- api-token : ${{ steps.mint-token.outputs.api-token }}
2018 steps :
2119 - name : Mint API token
2220 id : mint-token
@@ -33,12 +31,12 @@ jobs:
3331 # mask the newly minted API token, so that we don't accidentally leak it
3432 echo "::add-mask::${api_token}"
3533
36- # set the output for the job
37- echo "::set-output name=api-token:: ${api_token}"
34+ # set the environment variable for the job
35+ echo "API_TOKEN= ${api_token}" >> $GITHUB_ENV
3836 publish :
3937 needs : mint-token
4038 uses : speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
4139 secrets :
4240 github_access_token : ${{ secrets.GITHUB_TOKEN }}
43- pypi_token : ${{ needs.mint-token.outputs.api-token }}
41+ pypi_token : ${{ github.env.API_TOKEN }}
4442 speakeasy_api_key : ${{ secrets.SPEAKEASY_API_KEY }}
You can’t perform that action at this time.
0 commit comments