Skip to content

Commit

Permalink
Fixes preview builds (MetaMask#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ authored Mar 1, 2023
1 parent 8f82dfd commit 650ec8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
destination_dir:
required: true
type: string
ref:
required: false
type: string

jobs:
publish-docs-to-gh-pages:
Expand All @@ -19,6 +22,8 @@ jobs:
run: exit 1
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ jobs:
uses: ./.github/workflows/publish-docs.yml
with:
destination_dir: preview/${{ needs.get-commit-hash.outputs.COMMIT_SHA }}

ref: ${{ needs.get-commit-hash.outputs.COMMIT_SHA }}

post-preview-comment:
name: Post preview in comment
needs:
Expand Down

0 comments on commit 650ec8e

Please sign in to comment.