Skip to content

Commit c8f1a5e

Browse files
authored
Adjust if statement syntax
1 parent 4f8b5de commit c8f1a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/backup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
sudo tar -czvf "${{ inputs.backup-name }}.tar.gz" -C "$HOME/ghe-backup-data/$current" .
9999
100100
- name: Login to Azure
101-
if: inputs.backup-name != ""
101+
if: "${{ inputs.backup-name != '' }}"
102102
run: |
103103
az login \
104104
--service-principal \
@@ -108,7 +108,7 @@ jobs:
108108
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
109109
110110
- name: Upload backup to Azure
111-
if: inputs.backup-name != ""
111+
if: "${{ inputs.backup-name != '' }}"
112112
run: |
113113
az storage blob upload \
114114
--account-name "${{ secrets.AZURE_ACCOUNT_NAME }}" \

0 commit comments

Comments
 (0)