fix: add Sentry cron monitoring to nightly release and fix git tag creation (#4538)

This commit is contained in:
Nico Domino 2024-07-30 11:43:16 +02:00 committed by GitHub
parent 852522dcc0
commit 56b64d7780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,10 @@ jobs:
env: env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps: steps:
- name: Trigger Sentry Cron - In Progress
if: ${{ github.event_name == 'schedule' }}
shell: bash
run: curl "${{ secrets.SENTRY_CRONS }}?status=in_progress"
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
token: ${{ secrets.PAT_JUNON }} token: ${{ secrets.PAT_JUNON }}
@ -245,6 +249,8 @@ jobs:
publish-tauri: publish-tauri:
needs: [sign-tauri, build-tauri] needs: [sign-tauri, build-tauri]
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
version: ${{ env.version }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -296,10 +302,17 @@ jobs:
--header 'X-Auth-Token: ${{ secrets.BOT_AUTH_TOKEN }}' \ --header 'X-Auth-Token: ${{ secrets.BOT_AUTH_TOKEN }}' \
--data '{"channel":"${{ needs.build-tauri.outputs.channel }}","version":"${{ env.version }}-${{ github.run_number }}","sha":"${{ github.sha }}"}' --data '{"channel":"${{ needs.build-tauri.outputs.channel }}","version":"${{ env.version }}-${{ github.run_number }}","sha":"${{ github.sha }}"}'
create-git-tag:
needs: [publish-tauri, build-tauri]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_JUNON }} # custom token here so that we can push tags later
- name: Create git tag - name: Create git tag
shell: bash shell: bash
env: env:
TAG_NAME: "${{ needs.build-tauri.outputs.channel }}/${{ env.version }}" TAG_NAME: "${{ needs.build-tauri.outputs.channel }}/${{ needs.publish-tauri.outputs.version }}"
run: | run: |
function tag_exists() { function tag_exists() {
git tag --list | grep -q "^$1$" git tag --list | grep -q "^$1$"
@ -320,3 +333,7 @@ jobs:
delete_tag "$TAG_NAME" delete_tag "$TAG_NAME"
fi fi
create_tag "$TAG_NAME" create_tag "$TAG_NAME"
- name: Trigger Sentry Cron - Complete
if: ${{ github.event_name == 'schedule' }}
shell: bash
run: curl "${{ secrets.SENTRY_CRONS }}?status=ok"