Compare commits

...

5 Commits

Author SHA1 Message Date
Stefan Zweifel
c7ad0bdb15 Release v4.5.1 2020-09-11 11:20:33 +02:00
Stefan Zweifel
9cb711878d Merge pull request #98 from stefanzweifel/revert-95-master
Revert "Creating orphan branch"
2020-09-11 11:19:07 +02:00
Stefan Zweifel
b3fc6f8a17 Revert "Creating orphan branch" 2020-09-11 11:18:24 +02:00
Stefan Zweifel
d51384f592 Revert "Update Workflow"
This reverts commit 4e7ddef1e0.
2020-09-10 19:54:30 +02:00
Stefan Zweifel
4e7ddef1e0 Update Workflow 2020-09-10 19:51:32 +02:00
2 changed files with 8 additions and 9 deletions

View File

@@ -4,11 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.5.0...HEAD)
## [Unreleased](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.5.1...HEAD)
> TBD
## [v4.5.1](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.5.0...v4.5.1) - 2020-09-11
###Removed
- Remove orphan branch feature added in #95 which broke stuff [#98](https://github.com/stefanzweifel/git-auto-commit-action/pull/98)
## [v4.5.0](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.4.1...v4.5.0) - 2020-09-10
### Added

View File

@@ -1,7 +1,6 @@
#!/bin/bash
set -eu
set -x
_main() {
_switch_to_repository
@@ -40,13 +39,8 @@ _git_is_dirty() {
_switch_to_branch() {
echo "INPUT_BRANCH value: $INPUT_BRANCH";
if git show-ref --verify --quiet refs/heads/$INPUT_BRANCH; then
# Switch to branch from current Workflow run
git checkout $INPUT_BRANCH;
else
git checkout --orphan $INPUT_BRANCH
git rm -rf .
fi
# Switch to branch from current Workflow run
git checkout $INPUT_BRANCH;
}
_add_files() {