Skip to content

Commit 75e3281

Browse files
committed
fixed yml files
1 parent 1e04ac1 commit 75e3281

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,17 @@ jobs:
7676
git config --global user.name "${{ github.actor }}"
7777
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
7878
79+
# Ensure the working directory is clean
80+
git status
81+
git reset --hard
82+
git clean -fdx
83+
7984
# Get current version and bump it
8085
CURRENT_VERSION=$(node -p "require('./package.json').version")
8186
NEW_VERSION=$(npm version patch -m "Bump version to %s")
8287
echo "VERSION=${NEW_VERSION}" >> $GITHUB_ENV
8388
84-
# Ensure the working directory is clean
89+
# Ensure the working directory is clean again
8590
git status
8691
git add -A || echo "No changes to commit"
8792
git commit -m "Auto commit changes for version bump" || echo "No changes to commit"

0 commit comments

Comments
 (0)