diff --git a/.github/workflows/run-archiver.yml b/.github/workflows/run-archiver.yml index ff6c9d0a..0479c74e 100644 --- a/.github/workflows/run-archiver.yml +++ b/.github/workflows/run-archiver.yml @@ -15,9 +15,7 @@ jobs: matrix: dataset: - eia860 - - eia860m - eia923 - - epacems fail-fast: false runs-on: ubuntu-latest @@ -75,15 +73,10 @@ jobs: run: ls -R - name: Munge summaries together id: all_summaries - run: | - { - echo 'SLACK_PAYLOAD<> "$GITHUB_OUTPUT" + run: ./scripts/make_slack_notification_message.py --summary-files *_run_summary.json > slack-payload.json - name: Inform the Codemonkeys uses: slackapi/slack-github-action@v1.24.0 with: - payload: ${{steps.all_summaries.outputs.SLACK_PAYLOAD}} + payload-file-path: slack-payload.json env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required diff --git a/scripts/make_slack_notification_message.py b/scripts/make_slack_notification_message.py index 94bbec37..e5462e46 100755 --- a/scripts/make_slack_notification_message.py +++ b/scripts/make_slack_notification_message.py @@ -60,7 +60,11 @@ def header_block(text): print( json.dumps( - {"attachments": [{"blocks": changed_blocks + unchanged_blocks}]}, indent=2 + { + "text": "Archiver run completed!", + "attachments": [{"blocks": changed_blocks + unchanged_blocks}], + }, + indent=2, ) )