Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix Slack release message #1227

Merged
merged 3 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Check yourself

- [ ] Code is linted
- [ ] Tested with redoc/reference-docs/workflows
- [ ] Tested with redoc/reference-docs/workflows (internal)
- [ ] All new/updated code is covered with tests

## Security
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ jobs:
env:
CI: true
REDOCLY_TELEMETRY: off
# Test:
- run: |
echo ${{ github.repository }}
echo ${{ github.event.repository.full_name }}

IgorKarpiuk marked this conversation as resolved.
Show resolved Hide resolved
- name: Comment PR
if: github.repository == github.event.repository.full_name
uses: thollander/actions-comment-pull-request@v2
with:
filePath: benchmark_check.md
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
outputs:
published: ${{ steps.changesets.outputs.published }}
publishedPackages: ${{ steps.changesets.outputs.publishedPackages }}
releaseMessage: ${{ steps.changesets.outputs.releaseMessage }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand All @@ -41,6 +42,8 @@ jobs:
npx changeset version
npm i
node scripts/post-changeset.js
releaseMessage="$(cat output/release-message.txt)"
echo "releaseMessage=$releaseMessage" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -154,8 +157,8 @@ jobs:
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
redocly bundle https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml
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
redocly build-docs https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml
- name: Pull docker image
run: docker pull redocly/cli:latest
Expand All @@ -170,7 +173,7 @@ jobs:
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
docker run --rm redocly/cli bundle https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml --output=bundled.yaml
docker run --rm redocly/cli build-docs https://raw.githubusercontent.com/Rebilly/api-definitions/main/openapi/openapi.yaml

notify:
Expand All @@ -186,6 +189,6 @@ jobs:
uses: slackapi/[email protected]
with:
channel-id: C019K52TC0L #releases
slack-message: ${{ needs.release.outputs.publishedPackages }}
slack-message: ${{ needs.release.outputs.releaseMessage }}
env:
SLACK_BOT_TOKEN: ${{ secrets.RELEASES_SLACK_BOT_TOKEN }}
Loading
Loading