Skip to content

api updated

api updated #7

Workflow file for this run

name: Hide API Keys
on:
push:
branches:
- main
jobs:
hide_keys:
runs-on: ubuntu-latest
steps:
- name: pre-commit
uses: pre-commit/[email protected]
- name: Replace API keys
run: |
sed -i 's/GOOGLE_GEMINI_API_KEY=.*/GOOGLE_GEMINI_API_KEY="YOUR_API_KEY_HERE"/g' src/CREDS.py
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add src/CREDS.py
git commit -m "Hide API keys"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_ACCESS_TOKEN }}