Skip to content

Commit

Permalink
chore(ci): only release after CI on main passes
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Aug 25, 2024
1 parent d58f51f commit 910353c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ jobs:
golangci-lint run
); done
git diff
release:
name: Release
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/release.yml
needs: ["test", "lint"]
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Triggered once CI on main passes
on:
push:
branches:
- main
workflow_call:
name: Release
jobs:
release:
Expand Down

0 comments on commit 910353c

Please sign in to comment.