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

ci: update slack channels for failures #4503

Merged
merged 9 commits into from
Nov 27, 2023
3 changes: 2 additions & 1 deletion .github/workflows/publish-prisma-schema-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
# Update version in package.json and return directory for later usage
PACKAGE_DIR=$( nix run .#renderPrismaSchemaWasmPackage ${{ github.event.inputs.enginesWrapperVersion }})
npm publish "$PACKAGE_DIR" --access public --tag ${{ github.event.inputs.npmDistTag }}

Jolg42 marked this conversation as resolved.
Show resolved Hide resolved
#
# Failure handlers
#

- name: Set current job url in SLACK_FOOTER env var
if: ${{ failure() }}
run: echo "SLACK_FOOTER=<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|Click here to go to the job logs>" >> $GITHUB_ENV
Expand All @@ -63,4 +63,5 @@ jobs:
env:
SLACK_TITLE: 'Building and publishing @prisma/prisma-schema-wasm failed :x:'
SLACK_COLOR: '#FF0000'
SLACK_CHANNEL: feed-prisma-fmt-wasm-publish-failures
Jolg42 marked this conversation as resolved.
Show resolved Hide resolved
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WASM_FAILING }}
9 changes: 5 additions & 4 deletions .github/workflows/publish-query-engine-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ on:
required: true
default: 'latest'
description: 'npm dist-tag (e.g. latest or integration)'

jobs:
build:
name: Build and publish @prisma/query-engine-wasm
runs-on: ubuntu-latest
steps:
- name: Print input
run: echo "${{ toJson(github.event.inputs) }}"

- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.enginesHash }}
Expand All @@ -46,10 +46,10 @@ jobs:
- name: Build @prisma/query-engine-wasm
run: ./build.sh ${{ github.event.inputs.packageVersion }}
working-directory: ./query-engine/query-engine-wasm

- name: Set up NPM token for publishing
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Publish @prisma/query-engine-wasm
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }}
working-directory: ./query-engine/query-engine-wasm/pkg
Expand All @@ -66,4 +66,5 @@ jobs:
env:
SLACK_TITLE: 'Building and publishing @prisma/query-engine-wasm failed :x:'
SLACK_COLOR: '#FF0000'
SLACK_CHANNEL: feed-prisma-query-engine-wasm-publish-failures
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WASM_FAILING }}