Skip to content

Commit db763af

Browse files
authored
Simplify revert logic in Release workflow
Removed submodule existence check from revert step.
1 parent 5aaa7ad commit db763af

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/Release.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,12 @@ jobs:
6868

6969
- name: Revert previous commit
7070
run: |
71-
if [ ! -d "$SUBMODULE_PATH" ]; then
72-
#
73-
git config user.name "${GITHUB_ACTOR}"
74-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
75-
#
76-
git revert --no-edit HEAD
77-
git push
78-
else
79-
echo "::error ::Submodule already exists, skipping restore."
80-
exit 1
81-
fi
71+
#
72+
git config user.name "${GITHUB_ACTOR}"
73+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
74+
#
75+
git revert --no-edit HEAD
76+
git push
8277
8378
- name: Create pull request
8479
env:

0 commit comments

Comments
 (0)