From 4ca48551533752e1ae338f24ed5d422a4c163573 Mon Sep 17 00:00:00 2001 From: Jake Adams Date: Fri, 16 Aug 2024 12:39:22 -0600 Subject: [PATCH] ci: topic should be before deploy --- .github/actions/deploy/action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/deploy/action.yml b/.github/actions/deploy/action.yml index 44047b8..21067bf 100644 --- a/.github/actions/deploy/action.yml +++ b/.github/actions/deploy/action.yml @@ -43,6 +43,13 @@ runs: workload_identity_provider: ${{ inputs.identity_provider }} service_account: ${{ inputs.service_account_email }} + - name: 📥 Create Main PubSub topic + shell: bash + run: | + if [ ! "$(gcloud pubsub topics list | grep ${{ steps.globals.outputs.TOPIC_NAME }})" ]; then + gcloud pubsub topics create ${{ steps.globals.outputs.TOPIC_NAME }} --quiet + fi + - name: 🚀 Deploy Main Cloud Function id: deploy uses: google-github-actions/deploy-cloud-functions@v3 @@ -62,13 +69,6 @@ runs: max_instance_count: 1 event_trigger_retry: false - - name: 📥 Create Main PubSub topic - shell: bash - run: | - if [ ! "$(gcloud pubsub topics list | grep ${{ steps.globals.outputs.TOPIC_NAME }})" ]; then - gcloud pubsub topics create ${{ steps.globals.outputs.TOPIC_NAME }}--quiet - fi - - name: 🕰️ Create Main Cloud Scheduler shell: bash run: |