From 29bb2e3017bcd5870fb91867256cc44e0cde7f33 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Wed, 24 Jun 2026 21:18:52 +0530 Subject: [PATCH 01/11] feat: add daily CLI smoke test pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scheduled workflow that runs pack → publish → deploy → health check daily at 9 AM IST using both stable (npm) and alpha (GH Packages) CLI versions against alpha env. Posts to #coded-apps-alerts on failure. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 184 +++++++++++++++++++++++++++ fixtures/smoke-test-app/index.html | 5 + 2 files changed, 189 insertions(+) create mode 100644 .github/workflows/cli-smoke-test.yml create mode 100644 fixtures/smoke-test-app/index.html diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml new file mode 100644 index 000000000..e2bb69f9d --- /dev/null +++ b/.github/workflows/cli-smoke-test.yml @@ -0,0 +1,184 @@ +name: CLI Smoke Test + +on: + schedule: + # 3:30 UTC = 9:00 AM IST, daily + - cron: '30 3 * * *' + workflow_dispatch: {} # manual trigger for testing + +permissions: {} + +env: + ALPHA_AUTHORITY: https://alpha.uipath.com + ORG: popoc + TENANT: adetenant + FOLDER_KEY: 8645d674-92d8-4281-9aef-43f3e3608ded + +jobs: + stable-cli: + name: Stable CLI (npm @latest) + runs-on: ubuntu-latest + permissions: + contents: read + env: + APP_NAME: cli-smoke-stable + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install CLI (npm @latest) + run: | + npm i -g @uipath/cli@latest + uip tools update + echo "CLI version: $(uip --version)" + uip tools list + + - name: Login + run: | + uip login \ + --client-id "${{ secrets.UIPATH_CLIENT_ID }}" \ + --client-secret "${{ secrets.UIPATH_CLIENT_SECRET }}" \ + --authority "${{ env.ALPHA_AUTHORITY }}" \ + --tenant "${{ env.TENANT }}" + + - name: Pack + run: | + VERSION="0.0.$(date +%Y%m%d)" + echo "VERSION=$VERSION" >> "$GITHUB_ENV" + uip codedapp pack \ + --name "$APP_NAME" \ + --version "$VERSION" \ + fixtures/smoke-test-app + + - name: Publish + run: | + uip codedapp publish \ + --name "$APP_NAME" \ + --version "$VERSION" + + - name: Deploy + run: | + uip codedapp deploy \ + --name "$APP_NAME" \ + --folder-key "${{ env.FOLDER_KEY }}" + + - name: Health check + run: | + APP_URL="https://${{ env.ORG }}.uipath.host/${APP_NAME}" + echo "Checking $APP_URL" + for i in 1 2 3; do + if curl -sf --max-time 10 "$APP_URL" > /dev/null; then + echo "Health check passed on attempt $i" + exit 0 + fi + echo "Attempt $i failed, retrying in 10s..." + sleep 10 + done + echo "Health check failed after 3 attempts" + exit 1 + + alpha-cli: + name: Alpha CLI (GH Packages) + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + env: + APP_NAME: cli-smoke-alpha + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install CLI (GH Packages) + run: | + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PACKAGES_TOKEN }}" >> ~/.npmrc + echo "@uipath:registry=https://npm.pkg.github.com" >> ~/.npmrc + npm i -g @uipath/cli + uip tools update + echo "CLI version: $(uip --version)" + uip tools list + + - name: Login + run: | + uip login \ + --client-id "${{ secrets.UIPATH_CLIENT_ID }}" \ + --client-secret "${{ secrets.UIPATH_CLIENT_SECRET }}" \ + --authority "${{ env.ALPHA_AUTHORITY }}" \ + --tenant "${{ env.TENANT }}" + + - name: Pack + run: | + VERSION="0.0.$(date +%Y%m%d)" + echo "VERSION=$VERSION" >> "$GITHUB_ENV" + uip codedapp pack \ + --name "$APP_NAME" \ + --version "$VERSION" \ + fixtures/smoke-test-app + + - name: Publish + run: | + uip codedapp publish \ + --name "$APP_NAME" \ + --version "$VERSION" + + - name: Deploy + run: | + uip codedapp deploy \ + --name "$APP_NAME" \ + --folder-key "${{ env.FOLDER_KEY }}" + + - name: Health check + run: | + APP_URL="https://${{ env.ORG }}.uipath.host/${APP_NAME}" + echo "Checking $APP_URL" + for i in 1 2 3; do + if curl -sf --max-time 10 "$APP_URL" > /dev/null; then + echo "Health check passed on attempt $i" + exit 0 + fi + echo "Attempt $i failed, retrying in 10s..." + sleep 10 + done + echo "Health check failed after 3 attempts" + exit 1 + + notify: + name: Slack Alert on Failure + runs-on: ubuntu-latest + needs: [stable-cli, alpha-cli] + if: failure() + permissions: {} + steps: + - name: Post to Slack + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + if [ -z "$SLACK_WEBHOOK_URL" ]; then + echo "::warning::SLACK_WEBHOOK_URL not set — skipping notification" + exit 0 + fi + + FAILED_JOBS="" + if [ "${{ needs.stable-cli.result }}" = "failure" ]; then + FAILED_JOBS="stable-cli (npm @latest)" + fi + if [ "${{ needs.alpha-cli.result }}" = "failure" ]; then + [ -n "$FAILED_JOBS" ] && FAILED_JOBS="$FAILED_JOBS, " + FAILED_JOBS="${FAILED_JOBS}alpha-cli (GH Packages)" + fi + + RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + + curl -sf -X POST "$SLACK_WEBHOOK_URL" \ + -H 'Content-type: application/json' \ + -d "{\"text\":\":red_circle: *CLI Smoke Test Failed*\nJobs: ${FAILED_JOBS}\nRun: ${RUN_URL}\"}" diff --git a/fixtures/smoke-test-app/index.html b/fixtures/smoke-test-app/index.html new file mode 100644 index 000000000..ce08bb4d1 --- /dev/null +++ b/fixtures/smoke-test-app/index.html @@ -0,0 +1,5 @@ + + +CLI Smoke Test +

cli-smoke-test

+ From cea0d348b9635da6789bea2fc1f30aeabab80f24 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Wed, 24 Jun 2026 21:28:58 +0530 Subject: [PATCH 02/11] chore: add push trigger on feature branch for testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Temporary — remove before merging to main. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index e2bb69f9d..1913a8fdf 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -5,6 +5,8 @@ on: # 3:30 UTC = 9:00 AM IST, daily - cron: '30 3 * * *' workflow_dispatch: {} # manual trigger for testing + push: + branches: [feat/cli-smoke-test] # temporary: remove before merging to main permissions: {} From eaa6ccd0ec2994d051ba087c8feeffc0f476e0b2 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Wed, 24 Jun 2026 21:30:34 +0530 Subject: [PATCH 03/11] fix: use tools install instead of tools update for fresh CLI tools update fails when no tools are installed. Use tools install codedapp for the initial setup on a fresh runner. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 1913a8fdf..62ddcda65 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -36,7 +36,7 @@ jobs: - name: Install CLI (npm @latest) run: | npm i -g @uipath/cli@latest - uip tools update + uip tools install codedapp echo "CLI version: $(uip --version)" uip tools list @@ -106,7 +106,7 @@ jobs: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PACKAGES_TOKEN }}" >> ~/.npmrc echo "@uipath:registry=https://npm.pkg.github.com" >> ~/.npmrc npm i -g @uipath/cli - uip tools update + uip tools install codedapp echo "CLI version: $(uip --version)" uip tools list From 86c39f5cab58e569adf39e8244c551ae6e913b43 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Wed, 24 Jun 2026 21:33:16 +0530 Subject: [PATCH 04/11] fix: align login and commands with reference workflow - Add --organization, --scope to login (Apps OR.Folders.Read OR.Execution) - Pass credentials via env vars instead of inline secrets - Add --path-name to deploy - Fix pack command argument order Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 46 +++++++++++++++++----------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 62ddcda65..fbc87211f 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -11,10 +11,12 @@ on: permissions: {} env: + NODE_VERSION: "20" ALPHA_AUTHORITY: https://alpha.uipath.com ORG: popoc TENANT: adetenant FOLDER_KEY: 8645d674-92d8-4281-9aef-43f3e3608ded + LOGIN_SCOPE: "Apps OR.Folders.Read OR.Execution" jobs: stable-cli: @@ -31,7 +33,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: ${{ env.NODE_VERSION }} - name: Install CLI (npm @latest) run: | @@ -41,32 +43,36 @@ jobs: uip tools list - name: Login + env: + UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }} + UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }} run: | uip login \ - --client-id "${{ secrets.UIPATH_CLIENT_ID }}" \ - --client-secret "${{ secrets.UIPATH_CLIENT_SECRET }}" \ --authority "${{ env.ALPHA_AUTHORITY }}" \ - --tenant "${{ env.TENANT }}" + --organization "${{ env.ORG }}" \ + --tenant "${{ env.TENANT }}" \ + --client-id "$UIPATH_CLIENT_ID" \ + --client-secret "$UIPATH_CLIENT_SECRET" \ + --scope "${{ env.LOGIN_SCOPE }}" - name: Pack run: | VERSION="0.0.$(date +%Y%m%d)" echo "VERSION=$VERSION" >> "$GITHUB_ENV" uip codedapp pack \ + fixtures/smoke-test-app \ --name "$APP_NAME" \ - --version "$VERSION" \ - fixtures/smoke-test-app + --version "$VERSION" - name: Publish run: | - uip codedapp publish \ - --name "$APP_NAME" \ - --version "$VERSION" + uip codedapp publish --name "$APP_NAME" - name: Deploy run: | uip codedapp deploy \ --name "$APP_NAME" \ + --path-name "$APP_NAME" \ --folder-key "${{ env.FOLDER_KEY }}" - name: Health check @@ -99,7 +105,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: ${{ env.NODE_VERSION }} - name: Install CLI (GH Packages) run: | @@ -111,32 +117,36 @@ jobs: uip tools list - name: Login + env: + UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }} + UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }} run: | uip login \ - --client-id "${{ secrets.UIPATH_CLIENT_ID }}" \ - --client-secret "${{ secrets.UIPATH_CLIENT_SECRET }}" \ --authority "${{ env.ALPHA_AUTHORITY }}" \ - --tenant "${{ env.TENANT }}" + --organization "${{ env.ORG }}" \ + --tenant "${{ env.TENANT }}" \ + --client-id "$UIPATH_CLIENT_ID" \ + --client-secret "$UIPATH_CLIENT_SECRET" \ + --scope "${{ env.LOGIN_SCOPE }}" - name: Pack run: | VERSION="0.0.$(date +%Y%m%d)" echo "VERSION=$VERSION" >> "$GITHUB_ENV" uip codedapp pack \ + fixtures/smoke-test-app \ --name "$APP_NAME" \ - --version "$VERSION" \ - fixtures/smoke-test-app + --version "$VERSION" - name: Publish run: | - uip codedapp publish \ - --name "$APP_NAME" \ - --version "$VERSION" + uip codedapp publish --name "$APP_NAME" - name: Deploy run: | uip codedapp deploy \ --name "$APP_NAME" \ + --path-name "$APP_NAME" \ --folder-key "${{ env.FOLDER_KEY }}" - name: Health check From e9532cfc1f6d8f2494749c45b46f0ab59c0c7009 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 02:18:51 +0530 Subject: [PATCH 05/11] fix: use GITHUB_TOKEN for GH Packages auth instead of custom PAT The built-in GITHUB_TOKEN has read:packages for same-org packages, matching how publish.yml authenticates. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index fbc87211f..4db354871 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -109,7 +109,7 @@ jobs: - name: Install CLI (GH Packages) run: | - echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PACKAGES_TOKEN }}" >> ~/.npmrc + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc echo "@uipath:registry=https://npm.pkg.github.com" >> ~/.npmrc npm i -g @uipath/cli uip tools install codedapp From def5bd09503d6a36409f6c1ef6328930dedad1d2 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 02:26:28 +0530 Subject: [PATCH 06/11] fix: remove --path-name from deploy step --path-name doesn't exist in the alpha CLI and is redundant when equal to --name. Also fixes "routing name must be unique" error on upgrade runs where getDeployedApp lookup missed the existing app. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 4db354871..5ae34151a 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -72,7 +72,6 @@ jobs: run: | uip codedapp deploy \ --name "$APP_NAME" \ - --path-name "$APP_NAME" \ --folder-key "${{ env.FOLDER_KEY }}" - name: Health check @@ -146,7 +145,6 @@ jobs: run: | uip codedapp deploy \ --name "$APP_NAME" \ - --path-name "$APP_NAME" \ --folder-key "${{ env.FOLDER_KEY }}" - name: Health check From 4d4363c270f3a5be5f3e86f77e429fc9469b391b Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 02:29:48 +0530 Subject: [PATCH 07/11] fix: use unique app name per run for fresh publish+deploy each time App name includes github.run_number (smoke-s-42, smoke-a-42) so every run does a fresh publish + fresh deploy with no collisions. Version is always 1.0.0 since the name is unique. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 5ae34151a..9019740e4 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -25,7 +25,8 @@ jobs: permissions: contents: read env: - APP_NAME: cli-smoke-stable + # Unique per run — always a fresh publish + deploy, no collisions + APP_NAME: smoke-s-${{ github.run_number }} steps: - name: Checkout uses: actions/checkout@v4 @@ -57,12 +58,10 @@ jobs: - name: Pack run: | - VERSION="0.0.$(date +%Y%m%d)" - echo "VERSION=$VERSION" >> "$GITHUB_ENV" uip codedapp pack \ fixtures/smoke-test-app \ --name "$APP_NAME" \ - --version "$VERSION" + --version "1.0.0" - name: Publish run: | @@ -96,7 +95,7 @@ jobs: contents: read packages: read env: - APP_NAME: cli-smoke-alpha + APP_NAME: smoke-a-${{ github.run_number }} steps: - name: Checkout uses: actions/checkout@v4 @@ -130,12 +129,10 @@ jobs: - name: Pack run: | - VERSION="0.0.$(date +%Y%m%d)" - echo "VERSION=$VERSION" >> "$GITHUB_ENV" uip codedapp pack \ fixtures/smoke-test-app \ --name "$APP_NAME" \ - --version "$VERSION" + --version "1.0.0" - name: Publish run: | From e7c20cf5195e13e85bb2afb9204996bd41fd05bb Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 02:55:38 +0530 Subject: [PATCH 08/11] feat: switch to slackapi/slack-github-action for Slack alerts Use bot token + chat.postMessage instead of incoming webhook. Temporarily set to always() to test Slack delivery. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 9019740e4..d73246e96 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -163,18 +163,12 @@ jobs: name: Slack Alert on Failure runs-on: ubuntu-latest needs: [stable-cli, alpha-cli] - if: failure() + if: always() # temporary: revert to failure() after testing Slack permissions: {} steps: - - name: Post to Slack - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + - name: Build failure message + id: msg run: | - if [ -z "$SLACK_WEBHOOK_URL" ]; then - echo "::warning::SLACK_WEBHOOK_URL not set — skipping notification" - exit 0 - fi - FAILED_JOBS="" if [ "${{ needs.stable-cli.result }}" = "failure" ]; then FAILED_JOBS="stable-cli (npm @latest)" @@ -183,9 +177,14 @@ jobs: [ -n "$FAILED_JOBS" ] && FAILED_JOBS="$FAILED_JOBS, " FAILED_JOBS="${FAILED_JOBS}alpha-cli (GH Packages)" fi - RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + echo "text=:red_circle: *CLI Smoke Test Failed*\nJobs: ${FAILED_JOBS}\nRun: ${RUN_URL}" >> "$GITHUB_OUTPUT" - curl -sf -X POST "$SLACK_WEBHOOK_URL" \ - -H 'Content-type: application/json' \ - -d "{\"text\":\":red_circle: *CLI Smoke Test Failed*\nJobs: ${FAILED_JOBS}\nRun: ${RUN_URL}\"}" + - name: Post to Slack + uses: slackapi/slack-github-action@v3 + with: + method: chat.postMessage + token: ${{ secrets.SLACK_BOT_TOKEN }} + payload: | + channel: "C0BEDPVQ1LK" + text: "${{ steps.msg.outputs.text }}" From 509554b70d41dc4d9612d26337da87e8e269c0d8 Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 02:56:41 +0530 Subject: [PATCH 09/11] fix: revert notify condition back to failure() after Slack test Slack delivery confirmed working. Notify job now only fires on failure. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index d73246e96..121c6c983 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -163,7 +163,7 @@ jobs: name: Slack Alert on Failure runs-on: ubuntu-latest needs: [stable-cli, alpha-cli] - if: always() # temporary: revert to failure() after testing Slack + if: failure() permissions: {} steps: - name: Build failure message From fa14aa686f2b10a8ae5091aeda1c4ee2db163e7a Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 03:04:49 +0530 Subject: [PATCH 10/11] =?UTF-8?q?chore:=20finalize=20workflow=20for=20merg?= =?UTF-8?q?e=20=E2=80=94=20production=20channel,=20remove=20push=20trigger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove push trigger on feature branch - Point Slack alerts to #coded-apps-alerts (C0AMP09RXH7) Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 121c6c983..21fd3c142 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -5,8 +5,6 @@ on: # 3:30 UTC = 9:00 AM IST, daily - cron: '30 3 * * *' workflow_dispatch: {} # manual trigger for testing - push: - branches: [feat/cli-smoke-test] # temporary: remove before merging to main permissions: {} @@ -186,5 +184,5 @@ jobs: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} payload: | - channel: "C0BEDPVQ1LK" + channel: "C0AMP09RXH7" text: "${{ steps.msg.outputs.text }}" From 7c82b0733f33bee7c82d7a3434f746aa52c8e81b Mon Sep 17 00:00:00 2001 From: Raina451 Date: Thu, 2 Jul 2026 03:09:38 +0530 Subject: [PATCH 11/11] fix: also alert on cancelled jobs (e.g. timeouts) failure() doesn't catch cancelled jobs. Added cancelled check to both the notify condition and the failed-jobs message builder. Generated with Claude Code Co-Authored-By: Claude --- .github/workflows/cli-smoke-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml index 21fd3c142..05dd0f04c 100644 --- a/.github/workflows/cli-smoke-test.yml +++ b/.github/workflows/cli-smoke-test.yml @@ -161,17 +161,17 @@ jobs: name: Slack Alert on Failure runs-on: ubuntu-latest needs: [stable-cli, alpha-cli] - if: failure() + if: failure() || contains(needs.*.result, 'cancelled') permissions: {} steps: - name: Build failure message id: msg run: | FAILED_JOBS="" - if [ "${{ needs.stable-cli.result }}" = "failure" ]; then + if [ "${{ needs.stable-cli.result }}" = "failure" ] || [ "${{ needs.stable-cli.result }}" = "cancelled" ]; then FAILED_JOBS="stable-cli (npm @latest)" fi - if [ "${{ needs.alpha-cli.result }}" = "failure" ]; then + if [ "${{ needs.alpha-cli.result }}" = "failure" ] || [ "${{ needs.alpha-cli.result }}" = "cancelled" ]; then [ -n "$FAILED_JOBS" ] && FAILED_JOBS="$FAILED_JOBS, " FAILED_JOBS="${FAILED_JOBS}alpha-cli (GH Packages)" fi