mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
fix: add Sentry cron monitoring to nightly release and fix git tag creation (#4538)
This commit is contained in:
parent
852522dcc0
commit
56b64d7780
19
.github/workflows/publish.yaml
vendored
19
.github/workflows/publish.yaml
vendored
@ -35,6 +35,10 @@ jobs:
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
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
|
||||
with:
|
||||
token: ${{ secrets.PAT_JUNON }}
|
||||
@ -245,6 +249,8 @@ jobs:
|
||||
publish-tauri:
|
||||
needs: [sign-tauri, build-tauri]
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version: ${{ env.version }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -296,10 +302,17 @@ jobs:
|
||||
--header 'X-Auth-Token: ${{ secrets.BOT_AUTH_TOKEN }}' \
|
||||
--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
|
||||
shell: bash
|
||||
env:
|
||||
TAG_NAME: "${{ needs.build-tauri.outputs.channel }}/${{ env.version }}"
|
||||
TAG_NAME: "${{ needs.build-tauri.outputs.channel }}/${{ needs.publish-tauri.outputs.version }}"
|
||||
run: |
|
||||
function tag_exists() {
|
||||
git tag --list | grep -q "^$1$"
|
||||
@ -320,3 +333,7 @@ jobs:
|
||||
delete_tag "$TAG_NAME"
|
||||
fi
|
||||
create_tag "$TAG_NAME"
|
||||
- name: Trigger Sentry Cron - Complete
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
shell: bash
|
||||
run: curl "${{ secrets.SENTRY_CRONS }}?status=ok"
|
||||
|
Loading…
Reference in New Issue
Block a user