Skip to content

Commit

Permalink
fix(#476): 🐛 issue with empty output variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAugustin committed Mar 2, 2024
1 parent baac1d8 commit 99f4b51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,13 @@ jobs:
| ------ | ----------- |
| pr_branch | The name of the branch used for the pull request |

**Remarks** Please consider following edge cases

* **pr_branch**
* If PR branch already exists (e.g. after a 2nd run) the action won't update the branch but will still output the branch name
* If the remote repository already contains the source repository changes the action will exit and the output variable will be undefined
* If there are no changes the action will exit and the output variable will be undefined

### Docker

There are docker images available. Please checkout [How to use docker](docs/DOCKER.md) for details.
Expand Down
1 change: 1 addition & 0 deletions src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function check_branch_remote_existing() {

if [[ "${BRANCH_DOES_NOT_EXIST}" != true ]]; then
warn "Git branch '${NEW_BRANCH}' exists in the remote repository"
set_github_action_outputs
exit 0
fi
}
Expand Down

0 comments on commit 99f4b51

Please sign in to comment.