Browse Source

change of slack notification

Avik Datta 3 years ago
parent
commit
f5dbc4b1e6
1 changed files with 4 additions and 3 deletions
  1. 4 3
      .github/workflows/python-app.yml

+ 4 - 3
.github/workflows/python-app.yml

@@ -47,9 +47,10 @@ jobs:
         AIRFLOW__SECRETS__BACKEND: airflow.secrets.local_filesystem.LocalFilesystemBackend
         AIRFLOW__SECRETS__BACKEND_KWARGS: '{"variables_file_path":"/home/runner/work/igf-airflow-hpc/igf-airflow-hpc/airflow_var/var.json","connections_file_path":"/home/runner/work/igf-airflow-hpc/igf-airflow-hpc/airflow_var/conn.json"}'
     - name: Send custom JSON data to Slack workflow
-      uses: slackapi/slack-github-action@v1.14.0
+      uses: 8398a7/action-slack@v3
       with:
-        channel-id: 'C4W7HPCSJ'
-        payload: "{\"status\":\"${{ job.status }}\"}" # This data can be any valid JSON from a previous step in the GitHub Action
+        status: ${{ job.status }}
+        fields: repo,message,author,action,eventName,ref
       env:
         SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+      if: always()