Skip to content

Commit

Permalink
ci(package.yaml): only package on test success or workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
violetbrina committed Jan 14, 2025
1 parent 53d53da commit 75ff6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
package:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha') && (github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch')
name: Package
environment: production
runs-on: ubuntu-latest
Expand Down

0 comments on commit 75ff6c7

Please sign in to comment.