File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 47
47
build :
48
48
runs-on : ubuntu-latest
49
49
steps :
50
- - uses : actions/checkout@v3
50
+ - uses : actions/checkout@v4
51
51
with :
52
52
repository : github/backup-utils-private
53
53
token : " ${{ secrets.INTERNAL_ACTIONS_DX_BOT_ACCOUNT_TOKEN }}"
62
62
needs : build
63
63
runs-on :
64
64
group : larger-hosted-public-runners
65
- labels : ubuntu-latest-xl
65
+ labels : ubuntu-latest
66
66
env :
67
67
SSH_KEY : ${{ secrets.BACKUP_SSH_KEY }}
68
68
steps :
98
98
sudo tar -czvf "${{ inputs.backup-name }}.tar.gz" -C "$HOME/ghe-backup-data/$current" .
99
99
100
100
- name : Login to Azure
101
- if : ${{ inputs.backup-name }} != " "
101
+ if : " ${{ inputs.backup-name != '' }} "
102
102
run : |
103
103
az login \
104
104
--service-principal \
@@ -108,11 +108,11 @@ jobs:
108
108
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
109
109
110
110
- name : Upload backup to Azure
111
- if : ${{ inputs.backup-name }} != " "
111
+ if : " ${{ inputs.backup-name != '' }} "
112
112
run : |
113
113
az storage blob upload \
114
114
--account-name "${{ secrets.AZURE_ACCOUNT_NAME }}" \
115
115
--container-name "${{ secrets.AZURE_CONTAINER_NAME }}" \
116
116
--name "${{ inputs.backup-name }}.tar.gz" \
117
117
--file "${{ inputs.backup-name }}.tar.gz" \
118
- --connection-string "${{ secrets.CONNECTIONSTRING }}"
118
+ --connection-string "${{ secrets.CONNECTIONSTRING }}"
You can’t perform that action at this time.
0 commit comments