Skip to content

Commit

Permalink
ci: Add attempt number to the workflow run name, and URL in the slack…
Browse files Browse the repository at this point in the history
… message (#941)

Co-authored-by: Techassi <sascha.lautenschlaeger@stackable.tech>
  • Loading branch information
NickLarsenNZ and Techassi authored Nov 21, 2024
1 parent e5c6b5c commit 86f712a
Show file tree
Hide file tree
Showing 27 changed files with 110 additions and 54 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_airflow.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Airflow
run-name: |
Build Airflow (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: airflow
Expand Down Expand Up @@ -124,7 +126,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -150,7 +152,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_druid.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Druid
run-name: |
Build Druid (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: druid
Expand Down Expand Up @@ -126,7 +128,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -152,7 +154,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_hadoop.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Hadoop
run-name: |
Build Hadoop (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: hadoop
Expand Down Expand Up @@ -126,7 +128,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -152,7 +154,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_hbase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build HBase
run-name: |
Build HBase (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: hbase
Expand Down Expand Up @@ -127,7 +129,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -153,7 +155,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_hello-world.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Hello-World
run-name: |
Build Hello-World (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: hello-world
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -148,7 +150,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_hive.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Hive
run-name: |
Build Hive (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: hive
Expand Down Expand Up @@ -127,7 +129,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -153,7 +155,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_java-base.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Java Base
run-name: |
Build Java Base (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: java-base
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -148,7 +150,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_java-devel.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Java Development
run-name: |
Build Java Development (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: java-devel
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -148,7 +150,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_kafka-testing-tools.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Kafka Testing Tools
run-name: |
Build Kafka Testing Tools (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: kafka-testing-tools
Expand Down Expand Up @@ -126,7 +128,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -152,7 +154,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_kafka.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Kafka
run-name: |
Build Kafka (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: kafka
Expand Down Expand Up @@ -128,7 +130,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -154,7 +156,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_kcat.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build kcat
run-name: |
Build kcat (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: kcat
Expand Down Expand Up @@ -126,7 +128,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -152,7 +154,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_krb5.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Krb5
run-name: |
Build Krb5 (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: krb5
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -148,7 +150,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_nifi.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build NiFi
run-name: |
Build NiFi (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: nifi
Expand Down Expand Up @@ -126,7 +128,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -152,7 +154,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_omid.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build Omid
run-name: |
Build Omid (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: omid
Expand Down Expand Up @@ -126,7 +128,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -152,7 +154,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_opa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Build OPA
run-name: |
Build OPA (attempt #${{ github.run_attempt }})
env:
PRODUCT_NAME: opa
Expand Down Expand Up @@ -124,7 +126,7 @@ jobs:
channel-id: "C07UG6JH44F" # notifications-container-images
payload: |
{
"text": "*${{ github.workflow }}* failed",
"text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
"attachments": [
{
"pretext": "See the details below for a summary of which job(s) failed.",
Expand All @@ -150,7 +152,7 @@ jobs:
{
"type": "button",
"text": "Go to workflow run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
}
]
}
Expand Down
Loading

0 comments on commit 86f712a

Please sign in to comment.