generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create statuspage-backoffice-maintenance-aggregated.yml
Aggiunta nuovo workflow per gestire le manutenzioni programmate di BO sulla status page in modo aggregato come da task PQ-341.
- Loading branch information
1 parent
a4116a3
commit 197c022
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
.github/workflows/statuspage-backoffice-maintenance-aggregated.yml
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
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 |