Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Unify PR preview cleaning workflow

Dhruv Bhanushaliccc41c4534ac
diff --git a/.github/workflows/pr_closed.yml b/.github/workflows/pr_closed.yml
index 041a46aec..83604fdfc 100644
--- a/.github/workflows/pr_closed.yml
+++ b/.github/workflows/pr_closed.yml
@@ -7,7 +7,7 @@ on:
jobs:
clean-gh-pages:
- name: Clean Storybook and Tailwind preview
+ name: Clean GH Pages preview
runs-on: ubuntu-latest
steps:
@@ -22,5 +22,5 @@ jobs:
run: |
git config --global user.name 'PR Closed action'
git config --global user.email '[email protected]'
- git reset "$(git commit-tree 'HEAD^{tree}' -m 'Clean preview for PR #${{ github.event.pull_request.number }}')"
- git push --force
+ git commit -am 'Clean preview for PR ${{ github.event.pull_request.number }}'
+ git push