Skip to content

Commit

Permalink
Skip comment when CI not running from opengisch repository
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 9, 2024
1 parent fc556ff commit ce77293
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

jobs:
build:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -52,8 +55,6 @@ jobs:
qt_arch: 'android_x86'
all_files_access: 'ON'
artifact_name: 'android-x86'
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

steps:
- name: 🐣 Checkout
Expand Down Expand Up @@ -223,7 +224,7 @@ jobs:
name: deploy to play store
runs-on: ubuntu-20.04
needs: build
if: ${{ github.event_name == 'release' || ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) }}
if: ${{ ( github.event_name == 'release' || ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) ) && env.SENTRY_AUTH_TOKEN != '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -264,7 +265,7 @@ jobs:
name: comment (pr)
runs-on: ubuntu-20.04
needs: build
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' && env.SENTRY_AUTH_TOKEN != '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -295,7 +296,7 @@ jobs:
name: comment (commit)
runs-on: ubuntu-20.04
needs: build
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' && env.SENTRY_AUTH_TOKEN != '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit ce77293

Please sign in to comment.