mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-08-04 01:36:11 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c7ad0bdb15 | ||
|
9cb711878d | ||
|
b3fc6f8a17 | ||
|
d51384f592 | ||
|
4e7ddef1e0 |
@@ -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/)
|
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).
|
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
|
> 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
|
## [v4.5.0](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.4.1...v4.5.0) - 2020-09-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
set -x
|
|
||||||
|
|
||||||
_main() {
|
_main() {
|
||||||
_switch_to_repository
|
_switch_to_repository
|
||||||
@@ -40,13 +39,8 @@ _git_is_dirty() {
|
|||||||
_switch_to_branch() {
|
_switch_to_branch() {
|
||||||
echo "INPUT_BRANCH value: $INPUT_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
|
||||||
# Switch to branch from current Workflow run
|
git checkout $INPUT_BRANCH;
|
||||||
git checkout $INPUT_BRANCH;
|
|
||||||
else
|
|
||||||
git checkout --orphan $INPUT_BRANCH
|
|
||||||
git rm -rf .
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_add_files() {
|
_add_files() {
|
||||||
|
Reference in New Issue
Block a user