Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashad001 authored Apr 16, 2024
1 parent 1b86427 commit f348561
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update API Keys

on:
push:
branches:
- main

jobs:
update_api_keys:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Update API Keys
run: |
sed -i 's/API_KEY1/YOUR_API_KEY_HERE/g' src/CREDS.py
sed -i 's/API_KEY2/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 commit -m "Update API keys [skip ci]"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f348561

Please sign in to comment.