Merge pull request 'error if trying to push a self action that has uncommitted changes' (#64) from earl-warren/setup-forgejo:wip-diff-self-ache into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/64
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-10-12 16:26:00 +00:00
commit 0e868f6735

View file

@ -189,6 +189,7 @@ function push_self_action() {
clear_runner_cache clear_runner_cache
local dir="$DIR/self" local dir="$DIR/self"
git diff --exit-code
git clone . $dir git clone . $dir
( (
cd $dir cd $dir