Skip to content

Commit

Permalink
chore: test if we can run a job after merge (#3428)
Browse files Browse the repository at this point in the history
  • Loading branch information
mswertz authored Feb 22, 2024
1 parent 46906a0 commit 980ec5d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ jobs:
npx playwright test --config e2e e2e/tests
- store_test_results:
path: /root/project/e2e

handleMerge:
<<: *build_config
steps:
- run:
name: Run at merge
command: |
# Extract PR number from the GitHub context
PR_NUMBER=$(echo "${CIRCLE_PULL_REQUEST}" | awk -F/ '{print $NF}')
# Add your commands to delete the preview using $PR_NUMBER
echo "Deleting preview for pull request #$PR_NUMBER"
workflows:
version: 2
Expand All @@ -251,3 +263,11 @@ workflows:
filters:
branches:
only: master
- handleMerge:
filters:
branches:
ignore:
- '*'
only:
- /^pull_request/
- master

0 comments on commit 980ec5d

Please sign in to comment.