chore: send release message even if post release smokes fail (#1266)

This commit is contained in:
Andrew Tatomyr
2023-09-21 15:26:17 +03:00
committed by GitHub
parent e16f1fd3a2
commit f4da2c9df8

View File

@@ -138,6 +138,7 @@ jobs:
- deploy
- dockerhub
name: Test released version
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -145,6 +146,7 @@ jobs:
- name: Install CLI from npm
run: npm i -g @redocly/cli@latest
- name: Test version from NPM
continue-on-error: true
run: |
expected_version="$(cat packages/cli/package.json | jq -r '.version')"
actual_version="$(redocly --version)"
@@ -152,7 +154,6 @@ jobs:
echo "The version is correct. Actual version: $actual_version"
else
echo "The version is incorrect. Expected: $expected_version, actual: $actual_version"
exit 1
fi
redocly lint https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml --format=stylish
redocly bundle https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml -o bundled.json
@@ -160,6 +161,7 @@ jobs:
- name: Pull docker image
run: docker pull redocly/cli:latest
- name: Test docker image
continue-on-error: true
run: |
expected_version="$(cat packages/cli/package.json | jq -r '.version')"
actual_version="$(docker run --rm redocly/cli --version)"
@@ -167,7 +169,6 @@ jobs:
echo "The version is correct. Actual version: $actual_version"
else
echo "The version is incorrect. Expected: $expected_version, actual: $actual_version"
exit 1
fi
docker run --rm redocly/cli lint https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml
docker run --rm redocly/cli bundle https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml --output=bundled.yaml
@@ -178,7 +179,7 @@ jobs:
- release
- post-release-smoke-checks
if: needs.release.outputs.published == 'true'
name: Post the Release Message
name: Send the Release Message to Slack
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
@@ -196,7 +197,7 @@ jobs:
- name: Write release message to file
run: node scripts/write-release-message.js
- name: Post to a Slack channel
- name: Send to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1.23.0
with: