Skip to content

Commit

Permalink
try with notifying guardian
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Aug 8, 2024
1 parent 1257d33 commit 513943d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/integration-tests-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu22.04-16cores-64GB
steps:
- name: Collect Metrics
if: ${{ 'true' == 'false' }}
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
with:
Expand All @@ -31,30 +32,34 @@ jobs:
this-job-name: Publish Integration Test Image
continue-on-error: true
- name: Checkout the repo
if: ${{ 'true' == 'false' }}
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Setup Other Tags If Not Workflow Dispatch
id: tags
if: github.event_name != 'workflow_dispatch'
# if: github.event_name != 'workflow_dispatch'
if: ${{ 'true' == 'false' }}
run: |
echo "other_tags=${ECR_TAG}" >> $GITHUB_OUTPUT
- name: Build Image
if: ${{ 'true' == 'false' }}
uses: ./.github/actions/build-test-image
with:
other_tags: ${{ steps.tags.outputs.other_tags }}
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
- name: Notify Slack
if: always()
# Only run this notification for merge to develop failures
if: failure() && github.event_name != 'workflow_dispatch'
# if: failure() && github.event_name != 'workflow_dispatch'
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
env:
SLACK_BOT_TOKEN: ${{ secrets.QA_SLACK_API_KEY }}
with:
channel-id: "#team-test-tooling-internal"
slack-message: ":x: :mild-panic-intensifies: Publish Integration Test Image failed: \n${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}"
slack-message: ":x: :mild-panic-intensifies: Publish Integration Test Image failed: \n${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}\n${{ format('Notifying <!subteam^{0}|{0}>', secrets.GUARDIAN_SLACK_NOTIFICATION_HANDLE)}}"
build-chainlink-image:
environment: integration
# Only run this build for workflow_dispatch
Expand Down

0 comments on commit 513943d

Please sign in to comment.