Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ Custom commit message. **default** "Automated commit from action""

## Example usage
```
- name: Set branch env var
run: echo ::set-env name=BUILT_BRANCH::${GITHUB_REF##*/}-built

- name: Push to built branch
uses: Automattic/action-commit-to-branch@master
with:
branch: 'master-built'
branch: ${{ env.BUILT_BRANCH }}
commit_message: 'Build master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required
Expand Down