mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Test workflow
This commit is contained in:
parent
f7e6eb7e47
commit
6671aa2cba
1 changed files with 32 additions and 2 deletions
34
.github/workflows/daily-csv-upload.yaml
vendored
34
.github/workflows/daily-csv-upload.yaml
vendored
|
@ -2,14 +2,44 @@ name: Upload current-full.csv and current-federal.csv
|
||||||
run-name: Upload current-full.csv and current-federal.csv for branch ${{ github.head_ref }}
|
run-name: Upload current-full.csv and current-federal.csv for branch ${{ github.head_ref }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
environment:
|
||||||
|
type: choice
|
||||||
|
description: Which environment load reports for?
|
||||||
|
options:
|
||||||
|
- stable
|
||||||
|
- staging
|
||||||
|
- development
|
||||||
|
- ky
|
||||||
|
- es
|
||||||
|
- nl
|
||||||
|
- rh
|
||||||
|
- za
|
||||||
|
- gd
|
||||||
|
- rb
|
||||||
|
- ko
|
||||||
|
- ab
|
||||||
|
- bl
|
||||||
|
- rjm
|
||||||
|
- dk
|
||||||
schedule:
|
schedule:
|
||||||
# Runs every day at 5 AM UTC.
|
# Runs every day at 5 AM UTC.
|
||||||
- cron: "0 5 * * *"
|
- cron: "0 5 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
variables:
|
variables:
|
||||||
environment: "za"
|
outputs:
|
||||||
|
environment: ${{ steps.var.outputs.environment }}
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Setting global variables
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
id: var
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const environment = context.event.inputs.environment || 'za';
|
||||||
|
core.setOutput('environment', environment);
|
||||||
|
|
||||||
"Wait for deploy":
|
"Wait for deploy":
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue