Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@ jobs:
env:
SOME_SECRET: ${{ secrets.SOME_SECRET }}
run: python main.py
- name: commit files

- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty)

- name: push changes
git config user.name "[email protected]"
git config user.email "GitHub Action"

- name: Commit changes
run: |
git add .
git commit -m "Automatically committed at $(date)"
git status

- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
branch: main