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 5429be4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ jobs:
golangci-lint run
); done
git diff
release:
name: Release
# Only try release on main branch
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: ["test", "lint"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/release
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 5429be4

Please sign in to comment.