add-cms
This commit is contained in:
10
source/admin/scripts/revert_publish.sh
Normal file
10
source/admin/scripts/revert_publish.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
publishCommit=$(git --no-pager log -1 --pretty=format:"%H" --grep="^chore(release): publish$")
|
||||
ref=$(git tag -l --points-at $publishCommit)
|
||||
echo "reverting publish commit $publishCommit"
|
||||
echo "deleting tags $ref"
|
||||
git push --delete origin $ref
|
||||
echo "reverting commit $publishCommit"
|
||||
git revert --no-edit $publishCommit
|
||||
echo "pushing changes"
|
||||
git push origin main
|
||||
echo "done reverting publish"
|
||||
Reference in New Issue
Block a user