Skip to content

Commit 619fd46

Browse files
authored
CICD: fix upload and slack failure For GitHub Actions and update badges (#6366)
1 parent 61e13bd commit 619fd46

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/ci-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ jobs:
409409
- name: Download workspace archive
410410
uses: actions/download-artifact@v4
411411
with:
412-
name: workspace-ubuntu-24.04-${{ github.run_id }}
412+
name: workspace-${{ matrix.platform }}-${{ github.run_id }}
413413
path: /tmp/
414414
- name: Extract workspace archive
415415
run: |

.github/workflows/ci-pr.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
KMD_NOUSB: True
1111
BUILD_TYPE: integration
1212
ALGOTEST: 1
13+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1314

1415
concurrency:
1516
group: pr-${{ github.event.pull_request.number || github.ref }}
@@ -57,7 +58,7 @@ jobs:
5758
path: /tmp/workspace-${{ matrix.platform }}.tar.gz
5859
retention-days: 1
5960
- name: Notify Slack on failure
60-
if: failure()
61+
if: failure() && env.SLACK_WEBHOOK != ''
6162
uses: slackapi/slack-github-action@v2.1.0
6263
with:
6364
webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -122,7 +123,7 @@ jobs:
122123
-race -timeout 1h -coverprofile=coverage.txt -covermode=atomic -p 1 \
123124
$PACKAGE_NAMES
124125
- name: Notify Slack on failure
125-
if: failure()
126+
if: failure() && env.SLACK_WEBHOOK != ''
126127
uses: slackapi/slack-github-action@v2.1.0
127128
with:
128129
webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -200,7 +201,7 @@ jobs:
200201
TEST_RESULTS=~/test_results/${{ matrix.platform }}_integration/${PARTITION_ID} \
201202
test/scripts/run_integration_tests.sh
202203
- name: Notify Slack on failure
203-
if: failure()
204+
if: failure() && env.SLACK_WEBHOOK != ''
204205
uses: slackapi/slack-github-action@v2.1.0
205206
with:
206207
webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -267,7 +268,7 @@ jobs:
267268
TEST_RESULTS=~/test_results/${{ matrix.platform }}_e2e_expect/${PARTITION_ID} \
268269
test/scripts/run_integration_tests.sh
269270
- name: Notify Slack on failure
270-
if: failure()
271+
if: failure() && env.SLACK_WEBHOOK != ''
271272
uses: slackapi/slack-github-action@v2.1.0
272273
with:
273274
webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -331,7 +332,7 @@ jobs:
331332
TEST_RESULTS=~/test_results/${{ matrix.platform }}_e2e_subs \
332333
test/scripts/run_integration_tests.sh
333334
- name: Notify Slack on failure
334-
if: failure()
335+
if: failure() && env.SLACK_WEBHOOK != ''
335336
uses: slackapi/slack-github-action@v2.1.0
336337
with:
337338
webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -382,7 +383,7 @@ jobs:
382383
TestGoalWithExpect \
383384
TestTealdbgWithExpect
384385
- name: Notify Slack on failure
385-
if: failure()
386+
if: failure() && env.SLACK_WEBHOOK != ''
386387
uses: slackapi/slack-github-action@v2.1.0
387388
with:
388389
webhook: ${{ secrets.SLACK_WEBHOOK }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# go-algorand
33
| **Branch** | **Build Status** |
44
| --------------- | ---------------- |
5-
| **rel/stable** | [![CircleCI](https://circleci.com/gh/algorand/go-algorand/tree/rel%2Fstable.svg?style=svg)](https://circleci.com/gh/algorand/go-algorand/tree/rel%2Fstable) |
6-
| **rel/beta** | [![CircleCI](https://circleci.com/gh/algorand/go-algorand/tree/rel%2Fbeta.svg?style=svg)](https://circleci.com/gh/algorand/go-algorand/tree/rel%2Fbeta) |
7-
| **rel/nightly** | [![CircleCI](https://circleci.com/gh/algorand/go-algorand/tree/rel%2Fnightly.svg?style=svg)](https://circleci.com/gh/algorand/go-algorand/tree/rel%2Fnightly) |
5+
| **rel/stable** | [![Nightly Tests](https://github.com/algorand/go-algorand/actions/workflows/ci-nightly.yml/badge.svg?branch=rel%2Fstable)](https://github.com/algorand/go-algorand/actions/workflows/ci-nightly.yml) |
6+
| **rel/beta** | [![Nightly Tests](https://github.com/algorand/go-algorand/actions/workflows/ci-nightly.yml/badge.svg?branch=rel%2Fbeta)](https://github.com/algorand/go-algorand/actions/workflows/ci-nightly.yml) |
7+
| **rel/nightly** | [![Nightly Tests](https://github.com/algorand/go-algorand/actions/workflows/ci-nightly.yml/badge.svg?branch=rel%2Fnightly)](https://github.com/algorand/go-algorand/actions/workflows/ci-nightly.yml) |
88

99

1010
**Algorand's** official implementation in Go.

0 commit comments

Comments
 (0)