Skip to content

Commit

Permalink
ci: Update workflow trigger conditions (#168)
Browse files Browse the repository at this point in the history
# Pull Request

## Description

This change modifies the GitHub Actions workflow for code testing. It
adjusts the trigger conditions for the workflow:

1. For push events, the workflow now only runs on the `main` branch,
removing the exclusion for `release-please-*` branches.

2. For pull request events, a new `branches-ignore` condition is added
to exclude `release-please-*` branches.

These adjustments help streamline the workflow execution by focusing on
relevant branches and avoiding unnecessary runs on release-related
branches.

fixes #169
  • Loading branch information
JackPlowman authored Oct 20, 2024
1 parent d94299f commit f96a17a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Code Test

on:
push:
branches: [main, "!release-please-*"]
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches-ignore: [release-please-*]

permissions:
contents: read
Expand Down

0 comments on commit f96a17a

Please sign in to comment.