HiTIDE Repos Update #4
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
# Copy umm v from ops to uat | |
name: HiTIDE Repo Sync | |
# Controls when the workflow will run | |
on: | |
schedule: | |
- cron: '0 9 * * *' # Set the cron schedule for 1 am PST | |
workflow_dispatch: | |
jobs: | |
# First job in the workflow installs and verifies the software | |
build: | |
name: Build, Test | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
######################################################################### | |
# Environment Setup | |
######################################################################### | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: 1.5.1 | |
######################################################################### | |
# Install & Pylint & Flake | |
######################################################################### | |
- name: Poetry Steps | |
working-directory: hitide_repos | |
run: | | |
poetry install | |
######################################################################### | |
# HiTIDE Setup Token | |
######################################################################### | |
- name: Setup Token | |
env: | |
GSPREAD_TOKEN: ${{ secrets.GOOGLE_TOKEN }} | |
run: | | |
mkdir -p ~/.config/gspread | |
echo "$GSPREAD_TOKEN" > ~/.config/gspread/service_account.json | |
- name: Verify token file | |
run: cat ~/.config/gspread/service_account.json | |
######################################################################### | |
# HiTIDE Repos Dashboard | |
######################################################################### | |
- name: HiTIDE Repos Dashboard | |
working-directory: hitide_repos | |
env: | |
UAT_TOKEN_TEMP: ${{ secrets.LAUNCHPAD_TOKEN_UAT }} | |
OPS_TOKEN_TEMP: ${{ secrets.LAUNCHPAD_TOKEN_OPS }} | |
run: | | |
poetry run python hitide_repos.py -ut $UAT_TOKEN_TEMP -ot $OPS_TOKEN_TEMP |