Skip to content

Commit

Permalink
fix: don't run PR update jobs on main or production branches
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrose121 committed Aug 28, 2024
1 parent d30461a commit 2ebbeab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
retention-days: 30
- name: Comment PR with playwright report
uses: thollander/actions-comment-pull-request@v2
if: ${{ !cancelled() }}
if: ${{ !cancelled() && github.ref != 'refs/heads/production' && github.ref != 'refs/heads/main' }}
with:
pr_number: ${{ steps.ref_from_sha.outputs.pr_number }}
message: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
update_pr_description:
# Only want to run on success, otherwise it might be "pending", or "failure".
# Filter out storybook deployments and temporarily Netlify deployments
if: ${{ (github.event.deployment.ref != 'main') && (github.event.deployment_status.state == 'success') && !startsWith(github.event.deployment_status.environment, 'storybook')}}
if: ${{ github.ref != 'refs/heads/production' && github.ref != 'refs/heads/main' && (github.event.deployment_status.state == 'success') && !startsWith(github.event.deployment_status.environment, 'storybook')}}
name: Add deploy URL to PR description
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 2ebbeab

Please sign in to comment.