Check status of flightpath job bb28ab3e-0bd0-48d3-8716-a20d5f1dedfd by @helenb #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flightpath status check | |
# The following secrets are required on GitHub: | |
# - FLIGHTPATH_URL (URL for the flightpath excluding trailing slash) | |
# - FLIGHTPATH_AUTH_KEY (from flightpath) | |
run-name: Check status of flightpath job ${{inputs.job_id}} by @${{ github.actor }} | |
on: | |
workflow_dispatch: | |
inputs: | |
job_id: | |
description: 'Please provide the Flightpath job_id. You can find this in the output from run_flightpath.py when running "Copy prod to staging" Github Action.' | |
required: true | |
type: string | |
jobs: | |
run_flightpath_status_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install requests | |
- name: Run run_flightpath_status_check.py script | |
run: | | |
python tbx/core/utils/scripts/run_flightpath_status_check.py --job_id=${{ inputs.job_id }} | |
env: | |
FLIGHTPATH_AUTH_KEY: ${{ secrets.FLIGHTPATH_AUTH_KEY }} | |
FLIGHTPATH_URL: ${{ secrets.FLIGHTPATH_URL }} |