Skip to content

Commit 3c467b2

Browse files
Get dataset from azure
1 parent 246febe commit 3c467b2

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/restore.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ on:
1919
required: false
2020
type: string
2121
default: 'master'
22-
version:
23-
description: 'GHES Version of dataset'
24-
required: false
25-
type: string
26-
default: "3.8.0"
22+
2723
workflow_call:
2824
inputs:
2925
size:
@@ -40,11 +36,7 @@ on:
4036
required: false
4137
type: string
4238
default: 'master'
43-
version:
44-
description: 'GHES Version of dataset'
45-
required: false
46-
type: string
47-
default: "3.8.0"
39+
4840
jobs:
4941
build:
5042
runs-on: ubuntu-latest
@@ -84,12 +76,22 @@ jobs:
8476
token: "${{ secrets.INTERNAL_ACTIONS_DX_BOT_ACCOUNT_TOKEN }}"
8577
lfs: 'true'
8678

79+
- name: Download from blob storage
80+
run: |
81+
az storage blob download \
82+
--account-name ghesresults \
83+
--container-name ghes-data \
84+
--name v3.8-small-docs.tar.gz \
85+
--file ghes-data/data/backup/v3.8-small-docs.tar.gz \
86+
--connection-string "${{ secrets.CONNECTIONSTRING }}"
87+
88+
8789
- name: Unzip backup and setup symlink
8890
run: |
8991
mkdir $HOME/ghe-backup-data
9092
dir_name=$(date +%s)
9193
mkdir $HOME/ghe-backup-data/$dir_name
92-
tar -xvf ghes-data/data/backup/${{ inputs.size }}/v3.8.0/${{ inputs.size }}-refined.tar.gz -C $HOME/ghe-backup-data/$dir_name
94+
tar -xvf ghes-data/data/backup/v3.8-small-docs.tar.gz -C $HOME/ghe-backup-data/$dir_name
9395
9496
ln -s $dir_name $HOME/ghe-backup-data/current
9597

0 commit comments

Comments
 (0)