Set global change for the job

This commit is contained in:
Adrià Casajús 2022-05-11 16:48:27 +02:00
parent 4f8a590ef9
commit b3645b33dd
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
1 changed files with 1 additions and 3 deletions

View File

@ -99,10 +99,10 @@ jobs:
build:
runs-on: ubuntu-latest
needs: ['test']
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
steps:
- name: Publish to Docker Registry
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
uses: docker/build-push-action@v1
with:
repository: simplelogin/app-ci
@ -111,7 +111,6 @@ jobs:
tag_with_ref: true
- name: Create Sentry release
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@ -119,7 +118,6 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
- name: Send Telegram message
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}