From 58b79711d8cdeb0a871f1a073512a7f2ebe37006 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Wed, 6 May 2020 00:21:35 +0200 Subject: [PATCH] Add example --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c91a659..0ec688d 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,13 @@ In non-`push` events, such as `pull_request`, make sure to specify the `ref` to It is highly recommended to always specify the `branch` option explicitly. While the default setting works for `push` events, other events such as `pull_request` require it to work correctly. +```yaml +- uses: stefanzweifel/git-auto-commit-action@v4.1.6 + with: + commit_message: Some automated code change + branch: ${{ github.head_ref }} +``` + This Action does not contain magic and can't easily determine to which branch a commit should be pushed to. 🔮. ### Commits of this Action do not trigger new Workflow runs