We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512e637 commit 66afd41Copy full SHA for 66afd41
.github/workflows/publish.yml
@@ -66,3 +66,4 @@ jobs:
66
CODE_PATTERN: 'Enter OTP'
67
# 40 minutes for the entire command, 20 minutes for waiting for 2FA
68
TIMEOUT: '2400000'
69
+ REVERT_COMMAND: './scripts/revert_publish.sh'
scripts/revert_publish.sh
@@ -0,0 +1,10 @@
1
+publishCommit=$(git --no-pager log -1 --pretty=format:"%H" --grep="^chore(release): publish$")
2
+ref=$(git tag -l --points-at $publishCommit)
3
+echo "reverting publish commit $publishCommit"
4
+echo "deleting tags $ref"
5
+git push --delete origin $ref
6
+echo "reverting commit $publishCommit"
7
+git revert --no-edit $publishCommit
8
+echo "pushing changes"
9
+git push origin master
10
+echo "done reverting publish"
0 commit comments