Skip to content

Commit

Permalink
ci: fix api workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikib0 committed Oct 4, 2024
1 parent a3bb69a commit 5b93176
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/actions/deploy-cloudflare-worker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
required: true
BUCKET_SECRET_KEY:
description: 'The Bucket Secret Key'
requuired: true
required: true
GOOGLE_CLIENT_SECRET:
description: 'The Google client secret'
required: true
Expand Down Expand Up @@ -88,7 +88,7 @@ runs:
' > secrets.json &&
echo '<< Secrets file generated' &&
echo '>> Upload secrets' &&
yarn wrangler secret bulk --env ${{ inputs.CLOUDFLARE_ENVIRONMENT }} secrets.json &&
yarn wrangler secret:bulk secrets.json --env ${{ inputs.CLOUDFLARE_ENVIRONMENT }} &&
echo '<< Secrets uploaded'
command: deploy src/index.ts --env ${{ inputs.CLOUDFLARE_ENVIRONMENT }}
packageManager: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/migrate-d1-database/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Print Wrangler Logs'
description: 'Prints Wrangler logs files if exist'
name: 'Migrate DB'
description: 'Applies DB migrations'
inputs:
CLOUDFLARE_API_TOKEN:
description: 'Cloudflare API Token'
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/setup-wrangler-toml/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ runs:
echo 'database_id = "${{ inputs.DB_ID }}"' >> wrangler.toml
echo '[env.${{ inputs.environment }}.ai]' >> wrangler.toml
echo 'binding = "AI"' >> wrangler.toml
echo '[[env.${{ inputs.environment }}.vectorize]]' >> wrangler.toml
echo 'binding = "VECTOR_INDEX"' >> wrangler.toml
echo 'index_name = "${{ inputs.VECTOR_INDEX_NAME }}"' >> wrangler.toml
echo '[env.${{ inputs.environment }}.vars]' >> wrangler.toml
echo 'APP_URL = "${{ inputs.APP_URL }}"' >> wrangler.toml
echo 'AWS_SIGN_ALGORITHM = "${{ inputs.AWS_SIGN_ALGORITHM }}"' >> wrangler.toml
Expand Down

0 comments on commit 5b93176

Please sign in to comment.