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 b4e7f48
Show file tree
Hide file tree
Showing 2 changed files with 12 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
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Triggered once CI on main passes
on:
push:
branches:
- main
workflow_call:
secrets:
GITHUB_TOKEN:
description: "GitHub Token"
required: true
name: Release
jobs:
release:
Expand Down

0 comments on commit b4e7f48

Please sign in to comment.