Skip to content

Commit 19e5d86

Browse files
authored
Merge pull request #4644 from owncloud/fix/prevent_sbom_from_merge_commits
[FIX] Check if the triggering commit is a merge commit
2 parents 0e3acd8 + a7d9342 commit 19e5d86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sbom.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ permissions:
1616

1717
jobs:
1818
sbom:
19-
# Skip if the job was triggered by the SBOM commit in the latest push.
20-
if: "!contains(github.event.head_commit.message, 'SBOM updated')"
19+
# Skip if the job was triggered by the SBOM commit or a merge commit in the latest push.
20+
if: "!contains(github.event.head_commit.message, 'Merge pull request') && !contains(github.event.head_commit.message, 'SBOM updated')"
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
# Checkout the full repository history (required to access origin/master)
24+
# Checkout the repository
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
2727
with:

0 commit comments

Comments
 (0)