File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This script is part of the API docs build process:
4+ #
5+ # https://develop.sentry.dev/api/public/#build-process
6+
7+ set -eu
8+
9+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
10+ cd $SCRIPT_DIR /..
11+
12+ SENTRY_API_SCHEMA_SHA=" $( curl -sSL ' https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk ' BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }' ) "
13+ sed -i -e ' s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = "' $SENTRY_API_SCHEMA_SHA ' "|g' src/gatsby/utils/resolveOpenAPI.ts
Original file line number Diff line number Diff line change 11#! /bin/bash
2+
3+ # This script is part of the monthly CalVer release:
4+ #
5+ # https://github.com/getsentry/sentry-docs/blob/master/.github/workflows/release.yml#L24
6+ # https://github.com/getsentry/action-prepare-release/blob/main/action.yml
7+ # https://github.com/getsentry/craft#pre-release-command
8+
29set -eu
310
411SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
512cd $SCRIPT_DIR /..
6- SENTRY_API_SCHEMA_SHA=" $( curl -sSL ' https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk ' BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }' ) "
713
8- # These commands won't work on our machines since they're running macosx
9- if [ " ${1:- prod} " == " prod" ]; then
10- sed -i -e " s/\(Change Date:\s*\)[-0-9]\+\$ /\\ 1$( date +' %Y-%m-%d' -d ' 3 years' ) /" LICENSE
11- sed -i -e ' s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = "' $SENTRY_API_SCHEMA_SHA ' "|g' src/gatsby/utils/resolveOpenAPI.ts
12- fi
14+ sed -i -e " s/\(Change Date:\s*\)[-0-9]\+\$ /\\ 1$( date +' %Y-%m-%d' -d ' 3 years' ) /" LICENSE
You can’t perform that action at this time.
0 commit comments