@@ -23,11 +23,11 @@ jobs:
2323 name : Generate Version List
2424 runs-on : ubuntu-latest
2525 steps :
26- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727 with :
2828 persist-credentials : false
2929 - id : shard
30- uses : stackabletech/actions/shard@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
30+ uses : stackabletech/actions/shard@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
3131 with :
3232 product-name : ${{ inputs.product-name }}
3333 outputs :
@@ -48,23 +48,23 @@ jobs:
4848 versions : ${{ fromJson(needs.generate_matrix.outputs.versions) }}
4949 steps :
5050 - name : Checkout Repository
51- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
51+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5252 with :
5353 persist-credentials : false
5454
5555 - name : Free Disk Space
56- uses : stackabletech/actions/free-disk-space@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
56+ uses : stackabletech/actions/free-disk-space@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
5757
5858 - name : Build Product Image
5959 id : build
60- uses : stackabletech/actions/build-product-image@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
60+ uses : stackabletech/actions/build-product-image@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
6161 with :
6262 product-name : ${{ inputs.product-name }}
6363 product-version : ${{ matrix.versions }}
6464 sdp-version : ${{ inputs.sdp-version }}
6565
6666 - name : Publish Container Image on oci.stackable.tech
67- uses : stackabletech/actions/publish-image@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
67+ uses : stackabletech/actions/publish-image@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
6868 with :
6969 image-registry-uri : oci.stackable.tech
7070 image-registry-username : robot$${{ inputs.registry-namespace }}+github-action-build
@@ -85,12 +85,12 @@ jobs:
8585 versions : ${{ fromJson(needs.generate_matrix.outputs.versions) }}
8686 steps :
8787 - name : Checkout Repository
88- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
88+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8989 with :
9090 persist-credentials : false
9191
9292 - name : Publish and Sign Image Index Manifest to oci.stackable.tech
93- uses : stackabletech/actions/publish-index-manifest@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
93+ uses : stackabletech/actions/publish-index-manifest@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
9494 with :
9595 image-registry-uri : oci.stackable.tech
9696 image-registry-username : robot$${{ inputs.registry-namespace }}+github-action-build
@@ -102,44 +102,11 @@ jobs:
102102 name : Failure Notification
103103 needs : [generate_matrix, build, publish_manifests]
104104 runs-on : ubuntu-latest
105- if : failure()
105+ if : failure() || github.run_attempt > 1
106106 steps :
107- - uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
107+ - name : Send Notification
108+ uses : stackabletech/actions/send-slack-notification@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # v0.8.1
108109 with :
109- channel-id : " C07UG6JH44F" # notifications-container-images
110- payload : |
111- {
112- "text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
113- "attachments": [
114- {
115- "pretext": "See the details below for a summary of which job(s) failed.",
116- "color": "#aa0000",
117- "fields": [
118- {
119- "title": "Generate Version List",
120- "short": true,
121- "value": "${{ needs.generate_matrix.result }}"
122- },
123- {
124- "title": "Build/Publish Image",
125- "short": true,
126- "value": "${{ needs.build.result }}"
127- },
128- {
129- "title": "Build/Publish Manifests",
130- "short": true,
131- "value": "${{ needs.publish_manifests.result }}"
132- }
133- ],
134- "actions": [
135- {
136- "type": "button",
137- "text": "Go to workflow run",
138- "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
139- }
140- ]
141- }
142- ]
143- }
144- env :
145- SLACK_BOT_TOKEN : ${{ secrets.slack-token }}
110+ publish-manifests-result : ${{ needs.publish_manifests.result }}
111+ build-result : ${{ needs.build.result }}
112+ slack-token : ${{ secrets.slack-token }}
0 commit comments