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 f584eb9
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
steps:
- uses: ./.github/workflows/release.yml
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 f584eb9

Please sign in to comment.