Enhance error logging with exception messages #2088
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sentry | |
| on: | |
| push: | |
| branches-ignore: | |
| - "translations_**" | |
| - "dependabot/**" | |
| tags: | |
| - 'v*' | |
| jobs: | |
| sentry: | |
| name: Sentry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'corretto' | |
| cache: gradle | |
| - name: Get version from Gradle | |
| id: get_version | |
| run: echo "RELEASE_VERSION=$(./gradlew version -q --console plain --warning-mode none 2>/dev/null | tail -1)" >> $GITHUB_ENV | |
| - name: Get Sentry environment from project version | |
| id: get_env | |
| run: | | |
| if [[ "${{ env.RELEASE_VERSION }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "ENVIRONMENT=production" >> $GITHUB_ENV | |
| elif [[ "${{ env.RELEASE_VERSION }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+-r[ca]\.[0-9]+$ ]]; then | |
| echo "ENVIRONMENT=pre-release" >> $GITHUB_ENV | |
| elif [[ "${{ env.RELEASE_VERSION }}" == *-SNAPSHOT && ! "${{ env.RELEASE_VERSION }}" == *-DIRTY ]]; then | |
| echo "ENVIRONMENT=develop" >> $GITHUB_ENV | |
| else | |
| echo "ENVIRONMENT=feature" >> $GITHUB_ENV | |
| fi | |
| - name: Create Sentry release | |
| uses: getsentry/action-release@v3 | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
| SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
| with: | |
| environment: ${{ env.ENVIRONMENT }} | |
| release: bsl-language-server@${{ env.RELEASE_VERSION }} |