[Writer] Redirect /wallets/transactions/overview to /wallets (#1242) #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rebuild Site on Redirect Changes | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "content/redirects.yml" | |
| permissions: {} | |
| jobs: | |
| trigger-rebuild: | |
| name: Trigger Vercel Rebuild | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Vercel deploy hook | |
| run: | | |
| HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST "${{ secrets.VERCEL_DEPLOY_HOOK_URL }}") | |
| if [ "$HTTP_CODE" != "200" ] && [ "$HTTP_CODE" != "201" ]; then | |
| echo "::error::Deploy hook returned HTTP $HTTP_CODE" | |
| exit 1 | |
| fi | |
| echo "::notice::Triggered Vercel rebuild (HTTP $HTTP_CODE)" |