Skip to content

Commit

Permalink
New commit and push method
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamal-Moha authored Oct 20, 2024
1 parent 2860c2f commit 85e7e9d
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ on:

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:

- name: DEBUG
run: echo "::debug::Ref = ${{github.ref}}"
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0

- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content to github runner

Expand All @@ -31,13 +38,20 @@ jobs:
run: |
python wallet_accts.py
python acct_df.py
# - name:
# run: git add .

- name: Commit & Push
run:
git config user.name "your_name"
git config user.email "your_email@email.com"
git add .
git commit -m "Data Collection & Sync"
git push

- name: Commit changes
run: |
git config --local user.email "Kamalmohapy@gmail.com"
git config --local user.name "Kamal"
git add -A
git commit -m "${arr[$rand]}"
- name: GitHub Push
uses: ad-m/github-push-action@v0.6.0
with:
directory: "."
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 85e7e9d

Please sign in to comment.