Skip to content

Commit

Permalink
DEPLOY in commit message forces deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 12, 2020
1 parent 518f37b commit 6380401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
echo "##[set-output name=latest;]$(datasette inspect covid.db | jq '.covid.hash' -r)"
echo "##[set-output name=deployed;]$(curl -s https://covid-19.datasettes.com/-/databases.json | jq '.[0].hash' -r)"
- name: Set up Cloud Run
if: steps.decide_variables.outputs.latest != steps.decide_variables.outputs.deployed
if: contains(github.event.head_commit.message, 'DEPLOY') || steps.decide_variables.outputs.latest != steps.decide_variables.outputs.deployed
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '275.0.0'
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
- name: Deploy to Cloud Run
if: steps.decide_variables.outputs.latest != steps.decide_variables.outputs.deployed
if: contains(github.event.head_commit.message, 'DEPLOY') || steps.decide_variables.outputs.latest != steps.decide_variables.outputs.deployed
run: |-
gcloud config set run/region us-central1
gcloud config set project datasette-222320
Expand Down

0 comments on commit 6380401

Please sign in to comment.