From 828bae4354391119c4b260c621e7c5356634d071 Mon Sep 17 00:00:00 2001 From: nilayc Date: Mon, 7 Oct 2024 13:12:42 -0400 Subject: [PATCH] ci: handle sentry-project and newrelic-guid --- .github/workflows/reusable-docker-publish.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-docker-publish.yaml b/.github/workflows/reusable-docker-publish.yaml index 5c79766..783c924 100644 --- a/.github/workflows/reusable-docker-publish.yaml +++ b/.github/workflows/reusable-docker-publish.yaml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest env: APP_NAME: microsoft-teams-app + SENTRY_PROJECT: microsoft-teams-app steps: - name: Checkout uses: actions/checkout@v4 @@ -116,8 +117,8 @@ jobs: --arg v "${{ env.version }}" \ --arg c "${{ env.commit-id }}" \ --arg e "${{ inputs.environment }}" \ - --arg n "${{ secrets.NEWRELIC_APPLICATION_GUID }}" \ - --arg s "$APP_NAME" \ + --arg n "${{ github.event_name != 'schedule' && secrets.NEWRELIC_APPLICATION_GUID || '' }}" \ + --arg s "${{ github.event_name != 'schedule' && '$SENTRY_PROJECT' || '' }}" \ '{"app-name": $a, "branch": $b, "version": $v, "tag": $t, "commit-id": $c, "environment": $e, "newrelic-guid": $n, "sentry-project": $s }' ) echo $JSON_DATA | gh workflow run deploy-app.yaml --repo zeplin/infra --json