Skip to content

Commit

Permalink
ci: topic should be before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdadams committed Aug 16, 2024
1 parent cc45c7b commit 4ca4855
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 4ca4855

Please sign in to comment.