Skip to content

Commit

Permalink
Create statuspage-backoffice-maintenance-aggregated.yml
Browse files Browse the repository at this point in the history
Aggiunta nuovo workflow per gestire le manutenzioni programmate di BO sulla status page in modo aggregato come da task PQ-341.
  • Loading branch information
cristianosticca-pagopa authored Jan 16, 2025
1 parent a4116a3 commit 197c022
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/statuspage-backoffice-maintenance-aggregated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Scheduled - StatusPage Backoffice Maintenance Aggregated - Daily Script Execution

# Imposta il workflow per essere eseguito ogni giorno alle 00:00 UTC
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch: # Permette di eseguire manualmente il workflow

jobs:
run-script:
runs-on: ubuntu-latest

steps:
# Checkout del repository
- name: Checkout repository
uses: actions/checkout@v3

# Imposta Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

# Installa le dipendenze (se presenti)
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
# Esegui lo script Python
- name: Run the Python script
env:
BETTERSTACK_TOKEN: ${{ secrets.BETTER_STACK_TOKEN }}
PAGOPA_SUBSCRIPTION_KEY: ${{ secrets.PAGOPA_BACKOFFICE_API_KEY_PROD }}
PAGOPA_SUBSCRIPTION_KEY_GET_PA: ${{ secrets.PAGOPA_BACKOFFICE_API_KEY_GET_PA_PROD }}

run: |
python src/main/scripts/station-maintenance-aggregated.py

0 comments on commit 197c022

Please sign in to comment.