Skip to content

Commit 0c71cf0

Browse files
committed
Protect variable expansions with quotes
1 parent c68537c commit 0c71cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/Deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
id: set-options
2525
run: |
2626
# Deploy only if the PR was opened on the same repository
27-
if [[ ${{ github.repository }} == ${{ github.event.pull_request.head.repo.full_name }} ]]; then
27+
if [[ "${{ github.repository }}" == "${{ github.event.pull_request.head.repo.full_name }}" ]]; then
2828
DEPLOY="true"
2929
else
3030
DEPLOY="false"
3131
fi
3232
# Create previews only for pull requests
33-
if [[ ${{ github.event_name }} == "pull_request" ]]; then
33+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
3434
PREVIEW="previews/PR${PRNUM}"
3535
else
3636
PREVIEW=""

0 commit comments

Comments
 (0)