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 276da7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ 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: ./.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 276da7f

Please sign in to comment.