Skip to content

Commit

Permalink
docs: fix deployment version
Browse files Browse the repository at this point in the history
  • Loading branch information
latonz committed Apr 9, 2024
1 parent 5324612 commit bc9ac0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
pages: write
id-token: write
environment:
name: docs-${{ inputs.environment }}
name: docs-${{ inputs.environment || 'next' }}
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: pages
Expand All @@ -101,7 +101,7 @@ jobs:
# we never want to deploy with no version set
# stop the deployment here
- name: Version not set
if: ${{ inputs.version }} == ''
if: "${{ inputs.version || 'v1' == '' }} || ${{ inputs.version || 'v1' == '0.0.1-dev' }}"
run: exit 1
- uses: cloudflare/pages-action@v1
id: deployment
Expand Down

0 comments on commit bc9ac0c

Please sign in to comment.