stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
1.98k stars 227 forks source link

artifact in autocommit #134

Closed KonstantinKlepikov closed 3 years ago

KonstantinKlepikov commented 3 years ago

We can upload an artifacts (for example as https://github.com/actions/upload-artifact). How commit that artifacts to branch?

stefanzweifel commented 3 years ago

Artifacts uploaded with the linked Action are uploaded to GitHub's servers and not to the repository. (By default they also expire after 90 days; see docs)

If you want to push artifacts to the repository, you would have to copy the generated artifacts into your GitHub repository in the Github Actions Workflow (eg. cp /path/to/generated/artifact.txt /repo_path/my_artifact.txt).

git-auto-commit will then detect a change in your repository, create a commit with your artifact and push it to the remote repository.

KonstantinKlepikov commented 3 years ago

hmm ... he sees artifacts in workflow. It's all good :)

as example

  - uses: stefanzweifel/git-auto-commit-action@v4
    with:
      commit_message: Autoupdate
      branch: main
      file_pattern: someartifact.art