-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (36 loc) · 1.11 KB
/
retraction.yaml
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
37
38
39
name: Flag Retractions
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
remove-retractions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Authenticate to Google Cloud"
id: "auth"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}"
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
# TODO: base on an actual release
run: python -m pip install tqdm httpx gcsfs leap-data-management-utils==0.0.5
- name: "Run retraction script"
shell: bash
run: |
python scripts/retraction.py
env:
GOOGLE_APPLICATION_CREDENTIALS: "${{ steps.auth.outputs.credentials_file_path }}"
rerun-failed-jobs:
runs-on: ubuntu-latest
needs: [remove-retractions]
if: failure()
steps:
- name: Rerun failed jobs in the current workflow
env:
GH_TOKEN: ${{ github.token }}
run: gh run rerun ${{ github.run_id }} --failed