Skip to content

Instantly share code, notes, and snippets.

@wisehackermonkey
Created June 30, 2020 18:29
Show Gist options
  • Save wisehackermonkey/3163034d09f292a726d190d5cc7b5780 to your computer and use it in GitHub Desktop.
Save wisehackermonkey/3163034d09f292a726d190d5cc7b5780 to your computer and use it in GitHub Desktop.
how to commit files generated by github actions back to the repo

how to commit files generated by github actions back to the repo

    # https://github.com/ad-m/github-push-action
    - name: Commit files
      run: |
        git config --local user.email "[email protected]"
        git config --local user.name "GitHub Action"
        git commit -m "Add changes" -a
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment