Skip to content

Commit

Permalink
Merge pull request #2 from pagopa/fix-PQ-209-gpd-fdr-workaround-autom…
Browse files Browse the repository at this point in the history
…ation

feat: [Fix PQ-209] gpd fdr workaround automation
  • Loading branch information
aferracci authored Oct 29, 2024
2 parents fa4ea1f + 12991a5 commit 00823e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/gpd_get_fdr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ jobs:
if: ${{ (success() || failure())}}
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 #v1.24.0
with:
payload-file-path: "./report/src/report.json"
payload: |
{
"text": "Esito del job: ${{ job.status }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
Expand Down
6 changes: 4 additions & 2 deletions python/gpd-get-fdr/get-flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,12 @@ def get_report(domain_id, flow_id, broker_id, broker_station_id, password):
response: Response = requests.post(url, headers=h, data=body)
return response.text

# reads domain to load from csv file

def get_flows_form_list(csv_name, date):
# load the dictionary with the EC configurations
file_path = os.getcwd() + "/python/gpd-get-fdr/config/" + csv_name
#file_path = "/python/gpd-get-fdr/config/" + csv_name
#file_path = os.path.join(os.getenv("GITHUB_WORKSPACE", ""), "/python/gpd-get-fdr/config/" + csv_name)
file_path = "/home/runner/work/pagopa-qa/pagopa-qa/python/gpd-get-fdr/config/" + csv_name
print(f"loading csv file [{file_path}]")
data_dict = {}
with open(file_path, newline='') as csvfile:
Expand Down
3 changes: 3 additions & 0 deletions python/gpd-get-fdr/payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"text": "Action eseguita con esito: ${{ job.status }}"
}

0 comments on commit 00823e1

Please sign in to comment.