Skip to content

Commit

Permalink
fix: moved content update
Browse files Browse the repository at this point in the history
  • Loading branch information
cka-y committed Jan 16, 2024
1 parent 77a8878 commit 3a9e1ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/db-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@ on:
description: GCP ENVIRONMENT
required: true
type: string
env:
UPDATE_CONTENT: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
UPDATE_SCHEMA: ${{ github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' }}
jobs:
db-schema-update:
name: 'Database Schema Update'
permissions: write-all
runs-on: ubuntu-latest
if: ${{ env.UPDATE_SCHEMA }}
if: ${{ github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -80,7 +77,7 @@ jobs:
permissions: write-all
runs-on: ubuntu-latest
needs: db-schema-update
# if: ${{ env.UPDATE_CONTENT }}
# if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -137,7 +134,7 @@ jobs:

update-gcp-secret:
name: Update GCP Secrets
# if: ${{ env.UPDATE_CONTENT }}
# if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Authenticate to Google Cloud DEV
Expand Down

0 comments on commit 3a9e1ce

Please sign in to comment.