Skip to content

Commit

Permalink
Prevent GitLab e2e tests from running twice on PRs
Browse files Browse the repository at this point in the history
The tests are already triggered by the `pull-request` event (which is
also emitted when the head branch of the PR is updated). For PRs
created from branches of the ggp repo, having the `push` event for all
branches in the workflow definition will trigger it twice. Therefore I
changed it to only run on pushes to `main` now, following what we do
in other repos.

Signed-off-by: Max Jonas Werner <mail@makk.es>
  • Loading branch information
Max Jonas Werner committed May 4, 2023
1 parent 8c6d9e6 commit cf89773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/e2e-gitlab.yaml
Expand Up @@ -5,7 +5,8 @@ name: e2e-gitlab
workflow_dispatch:
pull_request:
push:
branches: ["*"]
branches:
- main
tags-ignore: ["*"]

jobs:
Expand Down

0 comments on commit cf89773

Please sign in to comment.