-
Notifications
You must be signed in to change notification settings - Fork 403
36 lines (31 loc) · 1.46 KB
/
revert.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Revert nextstrain.org/ncov/gisaid or nextstrain.org/ncov/open
on:
# Manually triggered using GitHub's UI
workflow_dispatch:
inputs:
data_source_name:
description: Name of data source corresponding to the datasets on nextstrain.org/ncov to reset. Options are "gisaid" or "open".
required: true
build_region_name:
description: A single regional dataset on nextstrain.org/ncov/{data_source_name} to reset. Options are "global", "africa", "asia", "europe", "north-america", "oceania", "south-america". If not specified, reverts all. If you'd like to revert multiple regions but not all, run the action multiple times, specifying one region each time.
required: true
default: all
date:
description: Date to revert to. A corresponding set of date-stamped datasets must exist on the s3 bucket. Format is YYYY-MM-DD.
required: true
env:
DATA_SOURCE_NAME: ${{ github.event.inputs.data_source_name }}
BUILD_REGION_NAME: ${{ github.event.inputs.build_region_name }}
DATE: ${{ github.event.inputs.date }}
jobs:
revert:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: nextstrain/.github/actions/setup-nextstrain-cli@master
- name: Revert build
run: |
./scripts/revert "$DATA_SOURCE_NAME" "$BUILD_REGION_NAME" "$DATE"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}