mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-07-31 06:57:40 +08:00
Replace set-output usage with GITHUB_OUTPUT (#252)
* GitHub has deprecated set-output and now needs to add the content to the GITHUB_OUTPUT file * Update tests too * Fix tests and shell-format changes * Revert yarn.lock changes
This commit is contained in:
committed by
GitHub
parent
faf78595b8
commit
2fde6fc18d
@@ -11,7 +11,7 @@ _main() {
|
||||
|
||||
if _git_is_dirty || "$INPUT_SKIP_DIRTY_CHECK"; then
|
||||
|
||||
echo "::set-output name=changes_detected::true";
|
||||
echo "changes_detected=true" >> $GITHUB_OUTPUT;
|
||||
|
||||
_switch_to_branch
|
||||
|
||||
@@ -24,7 +24,7 @@ _main() {
|
||||
_push_to_github
|
||||
else
|
||||
|
||||
echo "::set-output name=changes_detected::false";
|
||||
echo "changes_detected=false" >> $GITHUB_OUTPUT;
|
||||
|
||||
echo "Working tree clean. Nothing to commit.";
|
||||
fi
|
||||
@@ -101,7 +101,7 @@ _local_commit() {
|
||||
--author="$INPUT_COMMIT_AUTHOR" \
|
||||
${INPUT_COMMIT_OPTIONS:+"${INPUT_COMMIT_OPTIONS_ARRAY[@]}"};
|
||||
|
||||
echo "::set-output name=commit_hash::$(git rev-parse HEAD)";
|
||||
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT;
|
||||
}
|
||||
|
||||
_tag_commit() {
|
||||
|
Reference in New Issue
Block a user