Push Commit From Github Action

sunday-snippet · Apr 24, 2022 · ~1 min
Sunday Snippet #14 push commit from github action
Sunday Snippet #14 push commit from github action
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
name: example
on: push
jobs:
  example:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: |
        git config --global user.name '<user.name>'
        git config --global user.email '<user.email>'
        git add .
        git commit -snm "<commit message>" || true
        git push origin <branch> || true        
· · ·

Love This Content?

Any kind of supports is greatly appreciated! Kindly support me via Bitcoin, Ko-fi, Trakteer, or just continue to read another content. You can write a response via Webmention and let me know the URL via Telegraph.

Drop Your Comment Below