Skip to content

Commit

Permalink
ci: lint merge and revert commits, publish docker images with correct…
Browse files Browse the repository at this point in the history
… tags
  • Loading branch information
hf committed Feb 8, 2024
1 parent 7763bd1 commit 7485ac3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/conventional-commits-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ if (object === "pr") {
});
} else if (object === "push") {
validate.push(
...payload.commits.map((commit) => ({
title: commit.message.split("\n")[0],
content: commit.message,
})),
...payload.commits
.map((commit) => ({
title: commit.message.split("\n")[0],
content: commit.message,
}))
.filter(({ title }) => !title.startsWith("Merge branch ") && !title.startsWith("Revert ")),
);
} else {
console.error(
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
flavor: |
latest=false
tags: |
type=ref,event=tag
type=raw,value=${{ inputs.version }},enable=${{ github.event_name != 'push' }}
type=sha,enable=true
type=semver,value=${{ inputs.version }},enable=true
- uses: docker/setup-qemu-action@v2
with:
Expand Down

0 comments on commit 7485ac3

Please sign in to comment.