Skip to content

Commit 0889f59

Browse files
authored
Merge pull request #716 from github/djdefi-linter-backup-workflow
Workflow Linter fixes backup.yml
2 parents 1c2dc91 + c8f1a5e commit 0889f59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/backup.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
build:
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
with:
5252
repository: github/backup-utils-private
5353
token: "${{ secrets.INTERNAL_ACTIONS_DX_BOT_ACCOUNT_TOKEN }}"
@@ -62,7 +62,7 @@ jobs:
6262
needs: build
6363
runs-on:
6464
group: larger-hosted-public-runners
65-
labels: ubuntu-latest-xl
65+
labels: ubuntu-latest
6666
env:
6767
SSH_KEY: ${{ secrets.BACKUP_SSH_KEY }}
6868
steps:
@@ -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,11 +108,11 @@ 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 }}" \
115115
--container-name "${{ secrets.AZURE_CONTAINER_NAME }}" \
116116
--name "${{ inputs.backup-name }}.tar.gz" \
117117
--file "${{ inputs.backup-name }}.tar.gz" \
118-
--connection-string "${{ secrets.CONNECTIONSTRING }}"
118+
--connection-string "${{ secrets.CONNECTIONSTRING }}"

0 commit comments

Comments
 (0)