Push Commit From Github Action
Clavin June

Clavin June @clavinjune

About: a bunch of perceptrons

Location:
Jakarta, Indonesia
Joined:
Oct 5, 2018

Push Commit From Github Action

Publish Date: Apr 24 '22
8 0

Sunday Snippet #14 push commit from github action

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
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment