mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 11:45:06 +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:
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user