Skip to content

Commit

Permalink
ci: does topic need to exist first?
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdadams committed Aug 8, 2024
1 parent 35cff29 commit 5e26f9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ jobs:
--message-body='{"run": "now"}' \
--quiet
- name: 📥 Create Validator PubSub topic
run: |
if [ ! "$(gcloud pubsub topics list | grep $VALIDATOR_SCHEDULE_NAME-topic)" ]; then
gcloud pubsub topics create $VALIDATOR_SCHEDULE_NAME-topic --quiet
fi
- name: 🚀 Deploy Validator Cloud Function
id: deploy-validator
uses: google-github-actions/deploy-cloud-functions@v3
Expand All @@ -138,12 +144,6 @@ jobs:
max_instance_count: 1
event_trigger_retry: false

- name: 📥 Create Validator PubSub topic
run: |
if [ ! "$(gcloud pubsub topics list | grep $VALIDATOR_SCHEDULE_NAME-topic)" ]; then
gcloud pubsub topics create $VALIDATOR_SCHEDULE_NAME-topic --quiet
fi
- name: 🕰️ Create Validator Cloud Scheduler
run: |
for i in $(gcloud scheduler jobs list --location=us-central1 --uri); do
Expand Down

0 comments on commit 5e26f9f

Please sign in to comment.