Skip to content

Commit

Permalink
Replace set-output with $GITHUB_ENV in test-and-demo workflow (#666)
Browse files Browse the repository at this point in the history
Bug: T322548
  • Loading branch information
guergana authored Dec 29, 2022
1 parent df11986 commit 0ab1e9f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test-and-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
needs: setup
if: ${{ github.repository_owner == 'wmde' }}
outputs:
deploy_url: ${{ steps.netlify_deploy.outputs.url }}
deploy_url: ${{ env.NETLIFY_DEPLOY_URL }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -135,16 +135,15 @@ jobs:
- name: Build Project
run: npm run build:storybook
- name: Deploy to netlify
id: netlify_deploy
run: echo "::set-output name=url::$(npx -p netlify-cli
run: echo "NETLIFY_DEPLOY_URL=$(npx -p netlify-cli
netlify deploy --dir=docs/dist --json
--alias $(echo '${{ github.ref }}' | shasum | awk '{print $1}')
| jq '.deploy_url' --raw-output)"
| jq '.deploy_url' --raw-output)" >> $GITHUB_ENV
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Print deploy URL
run: echo ${{ steps.netlify_deploy.outputs.url }}
run: echo ${{ env.NETLIFY_DEPLOY_URL }}

browser-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0ab1e9f

Please sign in to comment.